Changeset 3012943
- Timestamp:
- 12/21/2023 12:44:43 PM (2 years ago)
- Location:
- additional-authors
- Files:
-
- 28 edited
- 1 copied
-
tags/1.3.5 (copied) (copied from additional-authors/trunk)
-
tags/1.3.5/additional-authors.php (modified) (1 diff)
-
tags/1.3.5/classes/Assets.php (modified) (3 diffs)
-
tags/1.3.5/classes/Components/Plugin.php (modified) (7 diffs)
-
tags/1.3.5/classes/Migrate.php (modified) (1 diff)
-
tags/1.3.5/classes/Render.php (modified) (1 diff)
-
tags/1.3.5/dist/additional-authors-meta-box.asset.php (modified) (1 diff)
-
tags/1.3.5/dist/additional-authors-meta-box.js (modified) (1 diff)
-
tags/1.3.5/dist/additional-authors-meta-box.js.map (modified) (1 diff)
-
tags/1.3.5/dist/additional-authors.asset.php (modified) (1 diff)
-
tags/1.3.5/dist/additional-authors.js (modified) (1 diff)
-
tags/1.3.5/dist/additional-authors.js.map (modified) (1 diff)
-
tags/1.3.5/dist/users-table.js.map (modified) (1 diff)
-
tags/1.3.5/readme.txt (modified) (2 diffs)
-
tags/1.3.5/vendor/composer/ClassLoader.php (modified) (27 diffs)
-
trunk/additional-authors.php (modified) (1 diff)
-
trunk/classes/Assets.php (modified) (3 diffs)
-
trunk/classes/Components/Plugin.php (modified) (7 diffs)
-
trunk/classes/Migrate.php (modified) (1 diff)
-
trunk/classes/Render.php (modified) (1 diff)
-
trunk/dist/additional-authors-meta-box.asset.php (modified) (1 diff)
-
trunk/dist/additional-authors-meta-box.js (modified) (1 diff)
-
trunk/dist/additional-authors-meta-box.js.map (modified) (1 diff)
-
trunk/dist/additional-authors.asset.php (modified) (1 diff)
-
trunk/dist/additional-authors.js (modified) (1 diff)
-
trunk/dist/additional-authors.js.map (modified) (1 diff)
-
trunk/dist/users-table.js.map (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/vendor/composer/ClassLoader.php (modified) (27 diffs)
Legend:
- Unmodified
- Added
- Removed
-
additional-authors/tags/1.3.5/additional-authors.php
r2951250 r3012943 11 11 * Text Domain: additional-authors 12 12 * Domain Path: /languages 13 * Version: 1.3. 413 * Version: 1.3.5 14 14 * Requires at least: 5.0 15 * Tested up to: 6. 315 * Tested up to: 6.4.2 16 16 */ 17 17 -
additional-authors/tags/1.3.5/classes/Assets.php
r2951153 r3012943 19 19 } 20 20 public function enqueueUsersTable(){ 21 $info = include $this->plugin-> path . "/dist/users-table.asset.php";21 $info = include $this->plugin->getPath("/dist/users-table.asset.php"); 22 22 wp_enqueue_script( 23 23 Plugin::HANDLE_USERS_TABLE_JS, 24 $this->plugin-> url . "/dist/users-table.js",24 $this->plugin->getUrl( "/dist/users-table.js"), 25 25 $info["dependencies"], 26 26 $info["version"], … … 40 40 wp_enqueue_style( 41 41 Plugin::HANDLE_META_BOX_CSS, 42 $this->plugin-> url . "/dist/additional-authors-meta-box.css",42 $this->plugin->getUrl("/dist/additional-authors-meta-box.css"), 43 43 [], 44 filemtime($this->plugin-> path."/dist/additional-authors-meta-box.css")44 filemtime($this->plugin->getPath("/dist/additional-authors-meta-box.css")) 45 45 ); 46 $info = include $this->plugin-> path . "/dist/additional-authors-meta-box.asset.php";46 $info = include $this->plugin->getPath("/dist/additional-authors-meta-box.asset.php"); 47 47 wp_enqueue_script( 48 48 Plugin::HANDLE_META_BOX_JS, 49 $this->plugin-> url . "/dist/additional-authors-meta-box.js",49 $this->plugin->getUrl("/dist/additional-authors-meta-box.js"), 50 50 $info["dependencies"], 51 51 $info["version"], … … 58 58 wp_enqueue_style( 59 59 Plugin::HANDLE_GUTENBERG_CSS, 60 $this->plugin-> url . "/dist/additional-authors.css",60 $this->plugin->getUrl( "/dist/additional-authors.css"), 61 61 [], 62 filemtime($this->plugin-> path."/dist/additional-authors.css")62 filemtime($this->plugin->getPath("/dist/additional-authors.css")) 63 63 ); 64 $info = include $this->plugin-> path . "/dist/additional-authors.asset.php";64 $info = include $this->plugin->getPath("/dist/additional-authors.asset.php"); 65 65 wp_enqueue_script( 66 66 Plugin::HANDLE_GUTENBERG_JS, 67 $this->plugin-> url. "/dist/additional-authors.js",67 $this->plugin->getUrl("/dist/additional-authors.js"), 68 68 $info["dependencies"], 69 69 $info["version"] -
additional-authors/tags/1.3.5/classes/Components/Plugin.php
r2951153 r3012943 5 5 use ReflectionClass; 6 6 use ReflectionException; 7 7 8 /** 8 9 * @version 0.1.4 … … 21 22 */ 22 23 public function __construct() { 23 $this->ref = new ReflectionClass( get_called_class());24 $this->path = plugin_dir_path( $this->ref->getFileName());25 $this->url = plugin_dir_url( $this->ref->getFileName());26 $this->basename = plugin_basename( $this->ref->getFileName());24 $this->ref = new ReflectionClass(get_called_class()); 25 $this->path = plugin_dir_path($this->ref->getFileName()); 26 $this->url = plugin_dir_url($this->ref->getFileName()); 27 $this->basename = plugin_basename($this->ref->getFileName()); 27 28 28 29 $this->tooLateForTextdomain = false; … … 30 31 $this->tooLateForTextdomain = true; 31 32 32 register_activation_hook( $this->ref->getFileName(), array( $this, "onActivation" ));33 register_deactivation_hook( $this->ref->getFileName(), array( $this, "onDeactivation" ));33 register_activation_hook($this->ref->getFileName(), array($this, "onActivation")); 34 register_deactivation_hook($this->ref->getFileName(), array($this, "onDeactivation")); 34 35 36 } 37 38 public function getPath(string $inPluginPath): string { 39 return trailingslashit($this->path) . ltrim($inPluginPath,"/"); 40 } 41 42 public function getUrl(string $inPluginUrl): string { 43 return trailingslashit($this->url) . ltrim($inPluginUrl, "/"); 35 44 } 36 45 … … 40 49 abstract function onCreate(); 41 50 42 public function onActivation( $networkWide) {43 if ( $networkWide) {44 $this->foreachMultisite( [ $this, 'onSiteActivation' ]);51 public function onActivation($networkWide) { 52 if ($networkWide) { 53 $this->foreachMultisite([$this, 'onSiteActivation']); 45 54 } else { 46 55 $this->onSiteActivation(); … … 52 61 } 53 62 54 public function onDeactivation( $networkWide) {55 if ( $networkWide) {56 $this->foreachMultisite( [ $this, 'onSiteDeactivation' ]);63 public function onDeactivation($networkWide) { 64 if ($networkWide) { 65 $this->foreachMultisite([$this, 'onSiteDeactivation']); 57 66 } else { 58 67 $this->onSiteDeactivation(); … … 67 76 // utility methods 68 77 // ----------------------------------------------------------------------------- 69 public function loadTextdomain( string $domain, string $relativeLanguagesPath) {70 if ( $this->tooLateForTextdomain) {71 error_log( "Too late: You need to setTextdomain in onCreate Method of the Plugin class.");78 public function loadTextdomain(string $domain, string $relativeLanguagesPath) { 79 if ($this->tooLateForTextdomain) { 80 error_log("Too late: You need to setTextdomain in onCreate Method of the Plugin class."); 72 81 return; 73 82 } 74 add_action( 'init', function () use ( $domain, $relativeLanguagesPath) {83 add_action('init', function () use ($domain, $relativeLanguagesPath) { 75 84 load_plugin_textdomain( 76 85 $domain, 77 86 false, 78 dirname( plugin_basename( $this->ref->getFileName() )) . "/" . $relativeLanguagesPath87 dirname(plugin_basename($this->ref->getFileName())) . "/" . $relativeLanguagesPath 79 88 ); 80 } );89 }); 81 90 } 82 91 83 public function foreachMultisite(callable $onSite) {84 if ( function_exists( 'is_multisite' ) && is_multisite()) {92 public function foreachMultisite(callable $onSite) { 93 if (function_exists('is_multisite') && is_multisite()) { 85 94 $network_site = get_network()->site_id; 86 $args = array( 'fields' => 'ids');87 $site_ids = get_sites( $args);95 $args = array('fields' => 'ids'); 96 $site_ids = get_sites($args); 88 97 89 98 // run the activation function for each blog id 90 foreach ( $site_ids as $site_id) {91 switch_to_blog( $site_id);99 foreach ($site_ids as $site_id) { 100 switch_to_blog($site_id); 92 101 $onSite(); 93 102 } 94 103 95 104 // switch back to the network site 96 switch_to_blog( $network_site);105 switch_to_blog($network_site); 97 106 } 98 107 } … … 105 114 public static function instance() { 106 115 $class = get_called_class(); 107 if ( ! isset( self::$instances[ $class ] )) {108 self::$instances[ $class] = new static();116 if (!isset(self::$instances[$class])) { 117 self::$instances[$class] = new static(); 109 118 } 110 119 111 return self::$instances[ $class];120 return self::$instances[$class]; 112 121 } 113 122 } -
additional-authors/tags/1.3.5/classes/Migrate.php
r2951153 r3012943 27 27 */ 28 28 function author_destination(){ 29 require_once( $this->plugin-> path.'/inc/migrate.additional-author-destination.php');29 require_once( $this->plugin->getPath('/inc/migrate.additional-author-destination.php' )); 30 30 } 31 31 -
additional-authors/tags/1.3.5/classes/Render.php
r2951153 r3012943 63 63 $paths = apply_filters(Plugin::FILTER_TEMPLATE_PATH, array()); 64 64 // add default templates at last position 65 $paths[] = $this->plugin-> path . 'templates';65 $paths[] = $this->plugin->getPath('templates'); 66 66 // find templates 67 67 foreach ($paths as $path){ -
additional-authors/tags/1.3.5/dist/additional-authors-meta-box.asset.php
r2951153 r3012943 1 <?php return array('dependencies' => array('react', 'react-dom' , 'wp-element'), 'version' => 'b51e0c1c6195b7790636');1 <?php return array('dependencies' => array('react', 'react-dom'), 'version' => '36b1d489b0255fd4c0ee'); -
additional-authors/tags/1.3.5/dist/additional-authors-meta-box.js
r2951153 r3012943 1 (()=>{var e={ 703:(e,t,n)=>{"use strict";var r=n(414);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,u){if(u!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};n.r(e),n.d(e,{VERSION:()=>a,after:()=>Ut,all:()=>on,allKeys:()=>be,any:()=>un,assign:()=>Ue,before:()=>Bt,bind:()=>jt,bindAll:()=>Mt,chain:()=>St,chunk:()=>Vn,clone:()=>We,collect:()=>Xt,compact:()=>kn,compose:()=>qt,constant:()=>ne,contains:()=>sn,countBy:()=>Sn,create:()=>Le,debounce:()=>Nt,default:()=>zn,defaults:()=>Be,defer:()=>kt,delay:()=>Dt,detect:()=>Jt,difference:()=>Nn,drop:()=>In,each:()=>Qt,escape:()=>lt,every:()=>on,extend:()=>qe,extendOwn:()=>Ue,filter:()=>nn,find:()=>Jt,findIndex:()=>Vt,findKey:()=>Lt,findLastIndex:()=>Kt,findWhere:()=>Yt,first:()=>Mn,flatten:()=>Tn,foldl:()=>en,foldr:()=>tn,forEach:()=>Qt,functions:()=>Re,get:()=>Ge,groupBy:()=>bn,has:()=>He,head:()=>Mn,identity:()=>Je,include:()=>sn,includes:()=>sn,indexBy:()=>wn,indexOf:()=>Gt,initial:()=>An,inject:()=>en,intersection:()=>Un,invert:()=>Ne,invoke:()=>an,isArguments:()=>Z,isArray:()=>Y,isArrayBuffer:()=>L,isBoolean:()=>k,isDataView:()=>J,isDate:()=>q,isElement:()=>T,isEmpty:()=>he,isEqual:()=>_e,isError:()=>B,isFinite:()=>ee,isFunction:()=>K,isMap:()=>Ae,isMatch:()=>pe,isNaN:()=>te,isNull:()=>I,isNumber:()=>P,isObject:()=>M,isRegExp:()=>U,isSet:()=>Ie,isString:()=>R,isSymbol:()=>F,isTypedArray:()=>ae,isUndefined:()=>D,isWeakMap:()=>Me,isWeakSet:()=>De,iteratee:()=>et,keys:()=>fe,last:()=>Dn,lastIndexOf:()=>Ht,map:()=>Xt,mapObject:()=>nt,matcher:()=>Ye,matches:()=>Ye,max:()=>fn,memoize:()=>It,methods:()=>Re,min:()=>hn,mixin:()=>$n,negate:()=>Pt,noop:()=>rt,now:()=>st,object:()=>Ln,omit:()=>Cn,once:()=>Ft,pairs:()=>Te,partial:()=>xt,partition:()=>On,pick:()=>jn,pluck:()=>cn,property:()=>Qe,propertyOf:()=>it,random:()=>ut,range:()=>Wn,reduce:()=>en,reduceRight:()=>tn,reject:()=>rn,rest:()=>In,restArguments:()=>A,result:()=>_t,sample:()=>vn,select:()=>nn,shuffle:()=>mn,size:()=>En,some:()=>un,sortBy:()=>yn,sortedIndex:()=>$t,tail:()=>In,take:()=>Mn,tap:()=>Ve,template:()=>gt,templateSettings:()=>ht,throttle:()=>Tt,times:()=>ot,toArray:()=>dn,toPath:()=>Ke,transpose:()=>Bn,unescape:()=>ft,union:()=>qn,uniq:()=>Pn,unique:()=>Pn,uniqueId:()=>wt,unzip:()=>Bn,values:()=>ke,where:()=>ln,without:()=>Rn,wrap:()=>Rt,zip:()=>Fn});const t=window.wp.element,r=window.ReactDOM;var i=n.n(r);const o=window.React;var u=n(697),s=n.n(u),a="1.13.6",c="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},l=Array.prototype,f=Object.prototype,h="undefined"!=typeof Symbol?Symbol.prototype:null,p=l.push,d=l.slice,v=f.toString,m=f.hasOwnProperty,y="undefined"!=typeof ArrayBuffer,g="undefined"!=typeof DataView,_=Array.isArray,b=Object.keys,w=Object.create,S=y&&ArrayBuffer.isView,O=isNaN,E=isFinite,x=!{toString:null}.propertyIsEnumerable("toString"),j=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],C=Math.pow(2,53)-1;function A(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;i<n;i++)r[i]=arguments[i+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var o=Array(t+1);for(i=0;i<t;i++)o[i]=arguments[i];return o[t]=r,e.apply(this,o)}}function M(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function I(e){return null===e}function D(e){return void 0===e}function k(e){return!0===e||!1===e||"[object Boolean]"===v.call(e)}function T(e){return!(!e||1!==e.nodeType)}function N(e){var t="[object "+e+"]";return function(e){return v.call(e)===t}}const R=N("String"),P=N("Number"),q=N("Date"),U=N("RegExp"),B=N("Error"),F=N("Symbol"),L=N("ArrayBuffer");var W=N("Function"),V=c.document&&c.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof V&&(W=function(e){return"function"==typeof e||!1});const K=W,$=N("Object");var z=g&&$(new DataView(new ArrayBuffer(8))),G="undefined"!=typeof Map&&$(new Map),H=N("DataView");const J=z?function(e){return null!=e&&K(e.getInt8)&&L(e.buffer)}:H,Y=_||N("Array");function Q(e,t){return null!=e&&m.call(e,t)}var X=N("Arguments");!function(){X(arguments)||(X=function(e){return Q(e,"callee")})}();const Z=X;function ee(e){return!F(e)&&E(e)&&!isNaN(parseFloat(e))}function te(e){return P(e)&&O(e)}function ne(e){return function(){return e}}function re(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=C}}function ie(e){return function(t){return null==t?void 0:t[e]}}const oe=ie("byteLength"),ue=re(oe);var se=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;const ae=y?function(e){return S?S(e)&&!J(e):ue(e)&&se.test(v.call(e))}:ne(!1),ce=ie("length");function le(e,t){t=function(e){for(var t={},n=e.length,r=0;r<n;++r)t[e[r]]=!0;return{contains:function(e){return!0===t[e]},push:function(n){return t[n]=!0,e.push(n)}}}(t);var n=j.length,r=e.constructor,i=K(r)&&r.prototype||f,o="constructor";for(Q(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=j[n])in e&&e[o]!==i[o]&&!t.contains(o)&&t.push(o)}function fe(e){if(!M(e))return[];if(b)return b(e);var t=[];for(var n in e)Q(e,n)&&t.push(n);return x&&le(e,t),t}function he(e){if(null==e)return!0;var t=ce(e);return"number"==typeof t&&(Y(e)||R(e)||Z(e))?0===t:0===ce(fe(e))}function pe(e,t){var n=fe(t),r=n.length;if(null==e)return!r;for(var i=Object(e),o=0;o<r;o++){var u=n[o];if(t[u]!==i[u]||!(u in i))return!1}return!0}function de(e){return e instanceof de?e:this instanceof de?void(this._wrapped=e):new de(e)}function ve(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,oe(e))}de.VERSION=a,de.prototype.value=function(){return this._wrapped},de.prototype.valueOf=de.prototype.toJSON=de.prototype.value,de.prototype.toString=function(){return String(this._wrapped)};var me="[object DataView]";function ye(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=typeof e;return("function"===i||"object"===i||"object"==typeof t)&&ge(e,t,n,r)}function ge(e,t,n,r){e instanceof de&&(e=e._wrapped),t instanceof de&&(t=t._wrapped);var i=v.call(e);if(i!==v.call(t))return!1;if(z&&"[object Object]"==i&&J(e)){if(!J(t))return!1;i=me}switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return h.valueOf.call(e)===h.valueOf.call(t);case"[object ArrayBuffer]":case me:return ge(ve(e),ve(t),n,r)}var o="[object Array]"===i;if(!o&&ae(e)){if(oe(e)!==oe(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;o=!0}if(!o){if("object"!=typeof e||"object"!=typeof t)return!1;var u=e.constructor,s=t.constructor;if(u!==s&&!(K(u)&&u instanceof u&&K(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}r=r||[];for(var a=(n=n||[]).length;a--;)if(n[a]===e)return r[a]===t;if(n.push(e),r.push(t),o){if((a=e.length)!==t.length)return!1;for(;a--;)if(!ye(e[a],t[a],n,r))return!1}else{var c,l=fe(e);if(a=l.length,fe(t).length!==a)return!1;for(;a--;)if(!Q(t,c=l[a])||!ye(e[c],t[c],n,r))return!1}return n.pop(),r.pop(),!0}function _e(e,t){return ye(e,t)}function be(e){if(!M(e))return[];var t=[];for(var n in e)t.push(n);return x&&le(e,t),t}function we(e){var t=ce(e);return function(n){if(null==n)return!1;var r=be(n);if(ce(r))return!1;for(var i=0;i<t;i++)if(!K(n[e[i]]))return!1;return e!==je||!K(n[Se])}}var Se="forEach",Oe=["clear","delete"],Ee=["get","has","set"],xe=Oe.concat(Se,Ee),je=Oe.concat(Ee),Ce=["add"].concat(Oe,Se,"has");const Ae=G?we(xe):N("Map"),Me=G?we(je):N("WeakMap"),Ie=G?we(Ce):N("Set"),De=N("WeakSet");function ke(e){for(var t=fe(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=e[t[i]];return r}function Te(e){for(var t=fe(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r}function Ne(e){for(var t={},n=fe(e),r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t}function Re(e){var t=[];for(var n in e)K(e[n])&&t.push(n);return t.sort()}function Pe(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var i=1;i<r;i++)for(var o=arguments[i],u=e(o),s=u.length,a=0;a<s;a++){var c=u[a];t&&void 0!==n[c]||(n[c]=o[c])}return n}}const qe=Pe(be),Ue=Pe(fe),Be=Pe(be,!0);function Fe(e){if(!M(e))return{};if(w)return w(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}function Le(e,t){var n=Fe(e);return t&&Ue(n,t),n}function We(e){return M(e)?Y(e)?e.slice():qe({},e):e}function Ve(e,t){return t(e),e}function Ke(e){return Y(e)?e:[e]}function $e(e){return de.toPath(e)}function ze(e,t){for(var n=t.length,r=0;r<n;r++){if(null==e)return;e=e[t[r]]}return n?e:void 0}function Ge(e,t,n){var r=ze(e,$e(t));return D(r)?n:r}function He(e,t){for(var n=(t=$e(t)).length,r=0;r<n;r++){var i=t[r];if(!Q(e,i))return!1;e=e[i]}return!!n}function Je(e){return e}function Ye(e){return e=Ue({},e),function(t){return pe(t,e)}}function Qe(e){return e=$e(e),function(t){return ze(t,e)}}function Xe(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,o){return e.call(t,n,r,i,o)}}return function(){return e.apply(t,arguments)}}function Ze(e,t,n){return null==e?Je:K(e)?Xe(e,t,n):M(e)&&!Y(e)?Ye(e):Qe(e)}function et(e,t){return Ze(e,t,1/0)}function tt(e,t,n){return de.iteratee!==et?de.iteratee(e,t):Ze(e,t,n)}function nt(e,t,n){t=tt(t,n);for(var r=fe(e),i=r.length,o={},u=0;u<i;u++){var s=r[u];o[s]=t(e[s],s,e)}return o}function rt(){}function it(e){return null==e?rt:function(t){return Ge(e,t)}}function ot(e,t,n){var r=Array(Math.max(0,e));t=Xe(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r}function ut(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}de.toPath=Ke,de.iteratee=et;const st=Date.now||function(){return(new Date).getTime()};function at(e){var t=function(t){return e[t]},n="(?:"+fe(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(i,t):e}}const ct={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},lt=at(ct),ft=at(Ne(ct)),ht=de.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var pt=/(.)^/,dt={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},vt=/\\|'|\r|\n|\u2028|\u2029/g;function mt(e){return"\\"+dt[e]}var yt=/^\s*(\w|\$)+\s*$/;function gt(e,t,n){!t&&n&&(t=n),t=Be({},t,de.templateSettings);var r=RegExp([(t.escape||pt).source,(t.interpolate||pt).source,(t.evaluate||pt).source].join("|")+"|$","g"),i=0,o="__p+='";e.replace(r,(function(t,n,r,u,s){return o+=e.slice(i,s).replace(vt,mt),i=s+t.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":u&&(o+="';\n"+u+"\n__p+='"),t})),o+="';\n";var u,s=t.variable;if(s){if(!yt.test(s))throw new Error("variable is not a bare identifier: "+s)}else o="with(obj||{}){\n"+o+"}\n",s="obj";o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{u=new Function(s,"_",o)}catch(e){throw e.source=o,e}var a=function(e){return u.call(this,e,de)};return a.source="function("+s+"){\n"+o+"}",a}function _t(e,t,n){var r=(t=$e(t)).length;if(!r)return K(n)?n.call(e):n;for(var i=0;i<r;i++){var o=null==e?void 0:e[t[i]];void 0===o&&(o=n,i=r),e=K(o)?o.call(e):o}return e}var bt=0;function wt(e){var t=++bt+"";return e?e+t:t}function St(e){var t=de(e);return t._chain=!0,t}function Ot(e,t,n,r,i){if(!(r instanceof t))return e.apply(n,i);var o=Fe(e.prototype),u=e.apply(o,i);return M(u)?u:o}var Et=A((function(e,t){var n=Et.placeholder,r=function(){for(var i=0,o=t.length,u=Array(o),s=0;s<o;s++)u[s]=t[s]===n?arguments[i++]:t[s];for(;i<arguments.length;)u.push(arguments[i++]);return Ot(e,r,this,this,u)};return r}));Et.placeholder=de;const xt=Et,jt=A((function(e,t,n){if(!K(e))throw new TypeError("Bind must be called on a function");var r=A((function(i){return Ot(e,r,t,this,n.concat(i))}));return r})),Ct=re(ce);function At(e,t,n,r){if(r=r||[],t||0===t){if(t<=0)return r.concat(e)}else t=1/0;for(var i=r.length,o=0,u=ce(e);o<u;o++){var s=e[o];if(Ct(s)&&(Y(s)||Z(s)))if(t>1)At(s,t-1,n,r),i=r.length;else for(var a=0,c=s.length;a<c;)r[i++]=s[a++];else n||(r[i++]=s)}return r}const Mt=A((function(e,t){var n=(t=At(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=jt(e[r],e)}return e}));function It(e,t){var n=function(r){var i=n.cache,o=""+(t?t.apply(this,arguments):r);return Q(i,o)||(i[o]=e.apply(this,arguments)),i[o]};return n.cache={},n}const Dt=A((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})),kt=xt(Dt,de,1);function Tt(e,t,n){var r,i,o,u,s=0;n||(n={});var a=function(){s=!1===n.leading?0:st(),r=null,u=e.apply(i,o),r||(i=o=null)},c=function(){var c=st();s||!1!==n.leading||(s=c);var l=t-(c-s);return i=this,o=arguments,l<=0||l>t?(r&&(clearTimeout(r),r=null),s=c,u=e.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(a,l)),u};return c.cancel=function(){clearTimeout(r),s=0,r=i=o=null},c}function Nt(e,t,n){var r,i,o,u,s,a=function(){var c=st()-i;t>c?r=setTimeout(a,t-c):(r=null,n||(u=e.apply(s,o)),r||(o=s=null))},c=A((function(c){return s=this,o=c,i=st(),r||(r=setTimeout(a,t),n&&(u=e.apply(s,o))),u}));return c.cancel=function(){clearTimeout(r),r=o=s=null},c}function Rt(e,t){return xt(t,e)}function Pt(e){return function(){return!e.apply(this,arguments)}}function qt(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}function Ut(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function Bt(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}const Ft=xt(Bt,2);function Lt(e,t,n){t=tt(t,n);for(var r,i=fe(e),o=0,u=i.length;o<u;o++)if(t(e[r=i[o]],r,e))return r}function Wt(e){return function(t,n,r){n=tt(n,r);for(var i=ce(t),o=e>0?0:i-1;o>=0&&o<i;o+=e)if(n(t[o],o,t))return o;return-1}}const Vt=Wt(1),Kt=Wt(-1);function $t(e,t,n,r){for(var i=(n=tt(n,r,1))(t),o=0,u=ce(e);o<u;){var s=Math.floor((o+u)/2);n(e[s])<i?o=s+1:u=s}return o}function zt(e,t,n){return function(r,i,o){var u=0,s=ce(r);if("number"==typeof o)e>0?u=o>=0?o:Math.max(o+s,u):s=o>=0?Math.min(o+1,s):o+s+1;else if(n&&o&&s)return r[o=n(r,i)]===i?o:-1;if(i!=i)return(o=t(d.call(r,u,s),te))>=0?o+u:-1;for(o=e>0?u:s-1;o>=0&&o<s;o+=e)if(r[o]===i)return o;return-1}}const Gt=zt(1,Vt,$t),Ht=zt(-1,Kt);function Jt(e,t,n){var r=(Ct(e)?Vt:Lt)(e,t,n);if(void 0!==r&&-1!==r)return e[r]}function Yt(e,t){return Jt(e,Ye(t))}function Qt(e,t,n){var r,i;if(t=Xe(t,n),Ct(e))for(r=0,i=e.length;r<i;r++)t(e[r],r,e);else{var o=fe(e);for(r=0,i=o.length;r<i;r++)t(e[o[r]],o[r],e)}return e}function Xt(e,t,n){t=tt(t,n);for(var r=!Ct(e)&&fe(e),i=(r||e).length,o=Array(i),u=0;u<i;u++){var s=r?r[u]:u;o[u]=t(e[s],s,e)}return o}function Zt(e){return function(t,n,r,i){var o=arguments.length>=3;return function(t,n,r,i){var o=!Ct(t)&&fe(t),u=(o||t).length,s=e>0?0:u-1;for(i||(r=t[o?o[s]:s],s+=e);s>=0&&s<u;s+=e){var a=o?o[s]:s;r=n(r,t[a],a,t)}return r}(t,Xe(n,i,4),r,o)}}const en=Zt(1),tn=Zt(-1);function nn(e,t,n){var r=[];return t=tt(t,n),Qt(e,(function(e,n,i){t(e,n,i)&&r.push(e)})),r}function rn(e,t,n){return nn(e,Pt(tt(t)),n)}function on(e,t,n){t=tt(t,n);for(var r=!Ct(e)&&fe(e),i=(r||e).length,o=0;o<i;o++){var u=r?r[o]:o;if(!t(e[u],u,e))return!1}return!0}function un(e,t,n){t=tt(t,n);for(var r=!Ct(e)&&fe(e),i=(r||e).length,o=0;o<i;o++){var u=r?r[o]:o;if(t(e[u],u,e))return!0}return!1}function sn(e,t,n,r){return Ct(e)||(e=ke(e)),("number"!=typeof n||r)&&(n=0),Gt(e,t,n)>=0}const an=A((function(e,t,n){var r,i;return K(t)?i=t:(t=$e(t),r=t.slice(0,-1),t=t[t.length-1]),Xt(e,(function(e){var o=i;if(!o){if(r&&r.length&&(e=ze(e,r)),null==e)return;o=e[t]}return null==o?o:o.apply(e,n)}))}));function cn(e,t){return Xt(e,Qe(t))}function ln(e,t){return nn(e,Ye(t))}function fn(e,t,n){var r,i,o=-1/0,u=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,a=(e=Ct(e)?e:ke(e)).length;s<a;s++)null!=(r=e[s])&&r>o&&(o=r);else t=tt(t,n),Qt(e,(function(e,n,r){((i=t(e,n,r))>u||i===-1/0&&o===-1/0)&&(o=e,u=i)}));return o}function hn(e,t,n){var r,i,o=1/0,u=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,a=(e=Ct(e)?e:ke(e)).length;s<a;s++)null!=(r=e[s])&&r<o&&(o=r);else t=tt(t,n),Qt(e,(function(e,n,r){((i=t(e,n,r))<u||i===1/0&&o===1/0)&&(o=e,u=i)}));return o}var pn=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function dn(e){return e?Y(e)?d.call(e):R(e)?e.match(pn):Ct(e)?Xt(e,Je):ke(e):[]}function vn(e,t,n){if(null==t||n)return Ct(e)||(e=ke(e)),e[ut(e.length-1)];var r=dn(e),i=ce(r);t=Math.max(Math.min(t,i),0);for(var o=i-1,u=0;u<t;u++){var s=ut(u,o),a=r[u];r[u]=r[s],r[s]=a}return r.slice(0,t)}function mn(e){return vn(e,1/0)}function yn(e,t,n){var r=0;return t=tt(t,n),cn(Xt(e,(function(e,n,i){return{value:e,index:r++,criteria:t(e,n,i)}})).sort((function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index})),"value")}function gn(e,t){return function(n,r,i){var o=t?[[],[]]:{};return r=tt(r,i),Qt(n,(function(t,i){var u=r(t,i,n);e(o,t,u)})),o}}const bn=gn((function(e,t,n){Q(e,n)?e[n].push(t):e[n]=[t]})),wn=gn((function(e,t,n){e[n]=t})),Sn=gn((function(e,t,n){Q(e,n)?e[n]++:e[n]=1})),On=gn((function(e,t,n){e[n?0:1].push(t)}),!0);function En(e){return null==e?0:Ct(e)?e.length:fe(e).length}function xn(e,t,n){return t in n}const jn=A((function(e,t){var n={},r=t[0];if(null==e)return n;K(r)?(t.length>1&&(r=Xe(r,t[1])),t=be(e)):(r=xn,t=At(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i<o;i++){var u=t[i],s=e[u];r(s,u,e)&&(n[u]=s)}return n})),Cn=A((function(e,t){var n,r=t[0];return K(r)?(r=Pt(r),t.length>1&&(n=t[1])):(t=Xt(At(t,!1,!1),String),r=function(e,n){return!sn(t,n)}),jn(e,r,n)}));function An(e,t,n){return d.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function Mn(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:An(e,e.length-t)}function In(e,t,n){return d.call(e,null==t||n?1:t)}function Dn(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:In(e,Math.max(0,e.length-t))}function kn(e){return nn(e,Boolean)}function Tn(e,t){return At(e,t,!1)}const Nn=A((function(e,t){return t=At(t,!0,!0),nn(e,(function(e){return!sn(t,e)}))})),Rn=A((function(e,t){return Nn(e,t)}));function Pn(e,t,n,r){k(t)||(r=n,n=t,t=!1),null!=n&&(n=tt(n,r));for(var i=[],o=[],u=0,s=ce(e);u<s;u++){var a=e[u],c=n?n(a,u,e):a;t&&!n?(u&&o===c||i.push(a),o=c):n?sn(o,c)||(o.push(c),i.push(a)):sn(i,a)||i.push(a)}return i}const qn=A((function(e){return Pn(At(e,!0,!0))}));function Un(e){for(var t=[],n=arguments.length,r=0,i=ce(e);r<i;r++){var o=e[r];if(!sn(t,o)){var u;for(u=1;u<n&&sn(arguments[u],o);u++);u===n&&t.push(o)}}return t}function Bn(e){for(var t=e&&fn(e,ce).length||0,n=Array(t),r=0;r<t;r++)n[r]=cn(e,r);return n}const Fn=A(Bn);function Ln(e,t){for(var n={},r=0,i=ce(e);r<i;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n}function Wn(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),i=Array(r),o=0;o<r;o++,e+=n)i[o]=e;return i}function Vn(e,t){if(null==t||t<1)return[];for(var n=[],r=0,i=e.length;r<i;)n.push(d.call(e,r,r+=t));return n}function Kn(e,t){return e._chain?de(t).chain():t}function $n(e){return Qt(Re(e),(function(t){var n=de[t]=e[t];de.prototype[t]=function(){var e=[this._wrapped];return p.apply(e,arguments),Kn(this,n.apply(de,e))}})),de}Qt(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=l[e];de.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),Kn(this,n)}})),Qt(["concat","join","slice"],(function(e){var t=l[e];de.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),Kn(this,e)}}));const zn=de;var Gn=$n(e);Gn._=Gn;const Hn=Gn;class Jn extends o.Component{constructor(e){super(),this.state={over:e.isOver}}componentWillReceiveProps(e){this.state.over=e.isOver}render(){const{display_name:e}=this.props.author;return(0,t.createElement)("div",{onMouseOver:this.onMouseOver.bind(this,!0),onMouseOut:this.onMouseOver.bind(this,!1),onClick:this.onClick.bind(this),className:"additional-authors-search-item "+(this.state.over?"is-over":"")},e)}onMouseOver(e){this.setState({over:e})}onClick(){this.props.onSelect(this.props.author)}}const Yn=Jn;class Qn extends o.Component{constructor(e){super(),this.state={over:e.isOver}}componentWillReceiveProps(e){this.state.over=e.isOver}render(){return(0,t.createElement)("div",{onMouseOver:this.onMouseOver.bind(this,!0),onMouseOut:this.onMouseOver.bind(this,!1),onClick:this.onClick.bind(this),className:"additional-authors-new-item "+(this.state.over?"is-over":"")},'New user "',this.props.name,'"')}onMouseOver(e){this.setState({over:e})}onClick(){this.props.onSelect(this.props.name)}}const Xn=Qn;class Zn extends o.Component{constructor(e){super(e),this.state={query:"",over_index:0,search_result:[],focus:!1}}render(){const{query:e}=this.state;return(0,t.createElement)("div",{className:"additional-authors-search",onKeyUp:this.onKeyUp.bind(this)},(0,t.createElement)("label",null,this.props.languages.label,(0,t.createElement)("br",null),(0,t.createElement)("input",{className:"additional-authors-search__input",type:"text",value:e,onKeyDown:this.onKeyDown.bind(this),onChange:this.onChange.bind(this),onFocus:this.onFocusSearch.bind(this,!0),onBlur:this.onFocusSearch.bind(this,!1)})),this.renderList())}renderList(){const{selected:e}=this.props,{over_index:n,search_result:r,focus:i,query:o}=this.state;if(i){const e=""!==o?(0,t.createElement)(Xn,{name:o,isOver:n===r.length,onSelect:this.onNewItem.bind(this)}):null;return(0,t.createElement)("div",{className:"additional-authors-search-list"},r.map(((e,r)=>(0,t.createElement)(Yn,{key:e.ID,author:e,onSelect:this.onSelect.bind(this,e),isOver:n===r}))),e)}return null}onChange(e){e&&(this.state.query=e.target.value);const{users:t,selected:n}=this.props,{query:r}=this.state;let i=[];if(""!==r){for(let e of t)if(e.display_name.toLowerCase().indexOf(r.toLowerCase())>-1){if(n.indexOf(e.ID+"")>=0||n.indexOf(parseInt(e.ID))>=0)continue;i.unshift(e)}}else i=[];this.setState({over_index:0,search_result:i})}onFocusSearch(e){clearTimeout(this.closeTimeout),e?this.setState({focus:e}):this.closeTimeout=setTimeout((()=>{this.setState({focus:e})}),600)}onSelect(e){this.props.onSelect(e),this.setState({focus:!1}),this.onChange()}onNewItem(e){""!==e&&(this.props.onSelect({ID:0,display_name:e,user_nicename:"-"}),this.setState({query:"",search_result:[]}))}onKeyDown(e){13===e.keyCode&&this.state.focus?(e.preventDefault(),void 0!==this.state.search_result[this.state.over_index]&&this.onSelect(this.state.search_result[this.state.over_index])):this.setState({focus:!0})}onKeyUp(e){this.state.focus&&(27!==e.keyCode?(38===e.keyCode?(e.preventDefault(),this.state.over_index--):40===e.keyCode&&(e.preventDefault(),this.state.over_index++),this.state.over_index>this.state.search_result.length?this.state.over_index=this.state.search_result.length:this.state.over_index<0&&(this.state.over_index=0),this.setState({over_index:this.state.over_index})):this.setState({search_result:[]}))}}Zn.defaultProps={users:[]},Zn.propTypes={users:s().array.isRequired,selected:s().array.isRequired,languages:s().object.isRequired,onSelect:s().func.isRequired};const er=Zn,tr=e=>{let{onClick:n}=e;return(0,t.createElement)("span",{className:"author-item__delete",onClick:n},"×")},nr=e=>{let{author:n}=e;const{ID:r,display_name:i}=n;return r>0?(0,t.createElement)("a",{href:`/wp-admin/user-edit.php?user_id=${r}`,target:"_blank"},i):i},rr=e=>{let{author:n,isMainAuthor:r,index:i,onUnselect:o,onChangePosition:u}=e;return(0,t.createElement)("div",{className:`author-item${r?" is-main-author":""}${n.ID<0?" is-new-author":""}`},(0,t.createElement)("span",{className:"autor-item__name"},(0,t.createElement)(nr,{author:n}),(0,t.createElement)("span",{className:"author-item__nicename"},n.user_nicename)),r?null:(0,t.createElement)(tr,{onClick:o}),(0,t.createElement)("span",{className:"author-item__move author-item__up",onClick:()=>u(i-1)},"▲"),(0,t.createElement)("span",{className:"author-item__move author-item__down",onClick:()=>u(i+1)},"▼"),(0,t.createElement)("input",{type:"hidden",name:"additional_authors[ids][]",value:n.ID}),(0,t.createElement)("input",{type:"hidden",name:"additional_authors[names][]",value:n.display_name}))};rr.defaultProps={author:{ID:-1,display_name:"",user_login:""},className:""},rr.propTypes={author:s().object.isRequired,index:s().number.isRequired,onUnselect:s().func.isRequired,onChangePosition:s().func.isRequired,isMainAuthor:s().bool.isRequired};const ir=rr;class or extends o.Component{constructor(e){super(e),this.state={users:e.users,selected:this.props.selected,new_user_id:-1}}componentDidMount(){this.dispatchChanged(),this.getMainUserControl()}render(){const{language:e,isGutenbergActive:n}=this.props,{selected:r,users:i,new_users:o,main_author:u}=this.state;let s=null;return n&&(s=(0,t.createElement)("input",{type:"hidden",name:"additional_authors_is_gutenberg",value:"it-is"})),r.map((e=>e.ID)),(0,t.createElement)("div",{className:"additional-authors"},s,(0,t.createElement)(er,{users:i,selected:r,languages:e,onSelect:this.onSelect.bind(this)}),(0,t.createElement)("hr",null),(0,t.createElement)("p",null,(0,t.createElement)("i",null,e.description)),(0,t.createElement)("div",null,r.map(((e,r)=>{if(n&&0===r)return null;for(const n in i){if(!i.hasOwnProperty(n))continue;const o=i[n];if(parseInt(o.ID)===parseInt(e))return(0,t.createElement)(ir,{key:e,index:r,author:o,onUnselect:this.onUnselect.bind(this,o),onChangePosition:this.onChangePosition.bind(this,o,r),isMainAuthor:0===r})}return null}))))}onSelect(e){0==e.ID&&(e.ID=this.state.new_user_id--,this.state.users.push(e)),this.state.selected.push(e.ID),this.state.selected=Hn.unique(this.state.selected),this.setState({selected:this.state.selected}),this.dispatchChanged()}onUnselect(e){let t=[];if(this.state.main_author!=e.ID){for(let n of this.state.selected)n!=e.ID&&t.push(n);this.setState({selected:t}),this.dispatchChanged()}else console.log("you cannot delete main author")}onChangePosition(e,t,n){let r=[];if(!(0==n&&e.ID<=0)){for(let e in this.state.selected)this.state.selected.hasOwnProperty(e)&&(e==t?r.push(this.state.selected[n]):e==n?r.push(this.state.selected[t]):r.push(this.state.selected[e]));this.setMainUserID(r[0]),this.setState({selected:r,main_author:this.getMainUserID()}),this.dispatchChanged()}}onMainAuthorChanged(e){const t=e.target.value;let n=0;for(;n<this.state.selected.length;){if(this.state.selected[n]===t){this.state.selected.splice(n,1);break}n++}this.state.selected.unshift(t),this.setState({selected:this.state.selected})}getMainUserControl(){if(this.props.isGutenbergActive)return null;if(null!=this._main_user_select)return this._main_user_select;let e=document.getElementById("post_author_override");return null==e&&(e=document.getElementById("post-author-selector-1")),null!=e&&(this._main_user_select=e,this._main_user_select.addEventListener("change",this.onMainAuthorChanged.bind(this))),this._main_user_select}setMainUserID(e){const t=this.getMainUserControl();void 0!==t&&null!=t&&(t.value=e,t.dispatchEvent(new Event("change")))}getMainUserID(){const e=this.getMainUserControl();return null!=e?e.value:-1}isSelected(e){for(let t of this.state.selected)if(t===e)return!0;return!1}dispatchChanged(){clearTimeout(this.dispatchTimeout),this.dispatchTimeout=setTimeout((()=>{const e=[];for(const t of this.state.selected)for(const n of this.props.users)parseInt(n.ID)===parseInt(t)&&e.push({...n});this.props.onAuthorsChange(e)}),300)}}or.defaultProps={users:[],language:{},onAuthorsChange:()=>{}},or.propTypes={isGutenbergActive:s().bool.isRequired,users:s().array.isRequired,selected:s().array.isRequired,language:s().object.isRequired,onAuthorsChange:s().func};const ur=or;document.addEventListener("DOMContentLoaded",(function(e){const{language:n,users:r,selected:o,root_id:u}=AdditionalAuthors;i().render((0,t.createElement)(ur,{isGutenbergActive:!1,language:n,users:r,selected:o,onAuthorsChange:e=>{document.dispatchEvent(new CustomEvent("onAdditionalAuthorsChange",{detail:e}))}}),document.getElementById(u))}))})()})();1 (()=>{var e={49:(e,t,n)=>{"use strict";var r=n(257);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,u){if(u!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},507:(e,t,n)=>{e.exports=n(49)()},257:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};n.r(e),n.d(e,{VERSION:()=>s,after:()=>qt,all:()=>rn,allKeys:()=>_e,any:()=>on,assign:()=>qe,before:()=>Ut,bind:()=>xt,bindAll:()=>At,chain:()=>wt,chunk:()=>Wn,clone:()=>Le,collect:()=>Qt,compact:()=>Dn,compose:()=>Pt,constant:()=>te,contains:()=>un,countBy:()=>wn,create:()=>Fe,debounce:()=>Tt,default:()=>$n,defaults:()=>Ue,defer:()=>Dt,delay:()=>It,detect:()=>Ht,difference:()=>Tn,drop:()=>Mn,each:()=>Yt,escape:()=>ct,every:()=>rn,extend:()=>Pe,extendOwn:()=>qe,filter:()=>tn,find:()=>Ht,findIndex:()=>Wt,findKey:()=>Ft,findLastIndex:()=>Vt,findWhere:()=>Jt,first:()=>An,flatten:()=>kn,foldl:()=>Zt,foldr:()=>en,forEach:()=>Yt,functions:()=>Ne,get:()=>ze,groupBy:()=>gn,has:()=>Ge,head:()=>An,identity:()=>He,include:()=>un,includes:()=>un,indexBy:()=>bn,indexOf:()=>zt,initial:()=>Cn,inject:()=>Zt,intersection:()=>qn,invert:()=>Te,invoke:()=>sn,isArguments:()=>X,isArray:()=>J,isArrayBuffer:()=>F,isBoolean:()=>D,isDataView:()=>H,isDate:()=>P,isElement:()=>k,isEmpty:()=>fe,isEqual:()=>ge,isError:()=>U,isFinite:()=>Z,isFunction:()=>V,isMap:()=>Ce,isMatch:()=>he,isNaN:()=>ee,isNull:()=>M,isNumber:()=>R,isObject:()=>A,isRegExp:()=>q,isSet:()=>Me,isString:()=>N,isSymbol:()=>B,isTypedArray:()=>se,isUndefined:()=>I,isWeakMap:()=>Ae,isWeakSet:()=>Ie,iteratee:()=>Ze,keys:()=>le,last:()=>In,lastIndexOf:()=>Gt,map:()=>Qt,mapObject:()=>tt,matcher:()=>Je,matches:()=>Je,max:()=>ln,memoize:()=>Mt,methods:()=>Ne,min:()=>fn,mixin:()=>Kn,negate:()=>Rt,noop:()=>nt,now:()=>ut,object:()=>Fn,omit:()=>jn,once:()=>Bt,pairs:()=>ke,partial:()=>Et,partition:()=>Sn,pick:()=>xn,pluck:()=>an,property:()=>Ye,propertyOf:()=>rt,random:()=>ot,range:()=>Ln,reduce:()=>Zt,reduceRight:()=>en,reject:()=>nn,rest:()=>Mn,restArguments:()=>C,result:()=>gt,sample:()=>dn,select:()=>tn,shuffle:()=>vn,size:()=>On,some:()=>on,sortBy:()=>mn,sortedIndex:()=>Kt,tail:()=>Mn,take:()=>An,tap:()=>We,template:()=>yt,templateSettings:()=>ft,throttle:()=>kt,times:()=>it,toArray:()=>pn,toPath:()=>Ve,transpose:()=>Un,unescape:()=>lt,union:()=>Pn,uniq:()=>Rn,unique:()=>Rn,uniqueId:()=>bt,unzip:()=>Un,values:()=>De,where:()=>cn,without:()=>Nn,wrap:()=>Nt,zip:()=>Bn});const t=window.React,r=window.ReactDOM;var i=n.n(r),o=n(507),u=n.n(o),s="1.13.6",a="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},c=Array.prototype,l=Object.prototype,f="undefined"!=typeof Symbol?Symbol.prototype:null,h=c.push,p=c.slice,d=l.toString,v=l.hasOwnProperty,m="undefined"!=typeof ArrayBuffer,y="undefined"!=typeof DataView,g=Array.isArray,_=Object.keys,b=Object.create,w=m&&ArrayBuffer.isView,S=isNaN,O=isFinite,E=!{toString:null}.propertyIsEnumerable("toString"),x=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],j=Math.pow(2,53)-1;function C(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;i<n;i++)r[i]=arguments[i+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var o=Array(t+1);for(i=0;i<t;i++)o[i]=arguments[i];return o[t]=r,e.apply(this,o)}}function A(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function M(e){return null===e}function I(e){return void 0===e}function D(e){return!0===e||!1===e||"[object Boolean]"===d.call(e)}function k(e){return!(!e||1!==e.nodeType)}function T(e){var t="[object "+e+"]";return function(e){return d.call(e)===t}}const N=T("String"),R=T("Number"),P=T("Date"),q=T("RegExp"),U=T("Error"),B=T("Symbol"),F=T("ArrayBuffer");var L=T("Function"),W=a.document&&a.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof W&&(L=function(e){return"function"==typeof e||!1});const V=L,K=T("Object");var $=y&&K(new DataView(new ArrayBuffer(8))),z="undefined"!=typeof Map&&K(new Map),G=T("DataView");const H=$?function(e){return null!=e&&V(e.getInt8)&&F(e.buffer)}:G,J=g||T("Array");function Y(e,t){return null!=e&&v.call(e,t)}var Q=T("Arguments");!function(){Q(arguments)||(Q=function(e){return Y(e,"callee")})}();const X=Q;function Z(e){return!B(e)&&O(e)&&!isNaN(parseFloat(e))}function ee(e){return R(e)&&S(e)}function te(e){return function(){return e}}function ne(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=j}}function re(e){return function(t){return null==t?void 0:t[e]}}const ie=re("byteLength"),oe=ne(ie);var ue=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;const se=m?function(e){return w?w(e)&&!H(e):oe(e)&&ue.test(d.call(e))}:te(!1),ae=re("length");function ce(e,t){t=function(e){for(var t={},n=e.length,r=0;r<n;++r)t[e[r]]=!0;return{contains:function(e){return!0===t[e]},push:function(n){return t[n]=!0,e.push(n)}}}(t);var n=x.length,r=e.constructor,i=V(r)&&r.prototype||l,o="constructor";for(Y(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=x[n])in e&&e[o]!==i[o]&&!t.contains(o)&&t.push(o)}function le(e){if(!A(e))return[];if(_)return _(e);var t=[];for(var n in e)Y(e,n)&&t.push(n);return E&&ce(e,t),t}function fe(e){if(null==e)return!0;var t=ae(e);return"number"==typeof t&&(J(e)||N(e)||X(e))?0===t:0===ae(le(e))}function he(e,t){var n=le(t),r=n.length;if(null==e)return!r;for(var i=Object(e),o=0;o<r;o++){var u=n[o];if(t[u]!==i[u]||!(u in i))return!1}return!0}function pe(e){return e instanceof pe?e:this instanceof pe?void(this._wrapped=e):new pe(e)}function de(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,ie(e))}pe.VERSION=s,pe.prototype.value=function(){return this._wrapped},pe.prototype.valueOf=pe.prototype.toJSON=pe.prototype.value,pe.prototype.toString=function(){return String(this._wrapped)};var ve="[object DataView]";function me(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=typeof e;return("function"===i||"object"===i||"object"==typeof t)&&ye(e,t,n,r)}function ye(e,t,n,r){e instanceof pe&&(e=e._wrapped),t instanceof pe&&(t=t._wrapped);var i=d.call(e);if(i!==d.call(t))return!1;if($&&"[object Object]"==i&&H(e)){if(!H(t))return!1;i=ve}switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return f.valueOf.call(e)===f.valueOf.call(t);case"[object ArrayBuffer]":case ve:return ye(de(e),de(t),n,r)}var o="[object Array]"===i;if(!o&&se(e)){if(ie(e)!==ie(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;o=!0}if(!o){if("object"!=typeof e||"object"!=typeof t)return!1;var u=e.constructor,s=t.constructor;if(u!==s&&!(V(u)&&u instanceof u&&V(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}r=r||[];for(var a=(n=n||[]).length;a--;)if(n[a]===e)return r[a]===t;if(n.push(e),r.push(t),o){if((a=e.length)!==t.length)return!1;for(;a--;)if(!me(e[a],t[a],n,r))return!1}else{var c,l=le(e);if(a=l.length,le(t).length!==a)return!1;for(;a--;)if(!Y(t,c=l[a])||!me(e[c],t[c],n,r))return!1}return n.pop(),r.pop(),!0}function ge(e,t){return me(e,t)}function _e(e){if(!A(e))return[];var t=[];for(var n in e)t.push(n);return E&&ce(e,t),t}function be(e){var t=ae(e);return function(n){if(null==n)return!1;var r=_e(n);if(ae(r))return!1;for(var i=0;i<t;i++)if(!V(n[e[i]]))return!1;return e!==xe||!V(n[we])}}var we="forEach",Se=["clear","delete"],Oe=["get","has","set"],Ee=Se.concat(we,Oe),xe=Se.concat(Oe),je=["add"].concat(Se,we,"has");const Ce=z?be(Ee):T("Map"),Ae=z?be(xe):T("WeakMap"),Me=z?be(je):T("Set"),Ie=T("WeakSet");function De(e){for(var t=le(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=e[t[i]];return r}function ke(e){for(var t=le(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r}function Te(e){for(var t={},n=le(e),r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t}function Ne(e){var t=[];for(var n in e)V(e[n])&&t.push(n);return t.sort()}function Re(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var i=1;i<r;i++)for(var o=arguments[i],u=e(o),s=u.length,a=0;a<s;a++){var c=u[a];t&&void 0!==n[c]||(n[c]=o[c])}return n}}const Pe=Re(_e),qe=Re(le),Ue=Re(_e,!0);function Be(e){if(!A(e))return{};if(b)return b(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}function Fe(e,t){var n=Be(e);return t&&qe(n,t),n}function Le(e){return A(e)?J(e)?e.slice():Pe({},e):e}function We(e,t){return t(e),e}function Ve(e){return J(e)?e:[e]}function Ke(e){return pe.toPath(e)}function $e(e,t){for(var n=t.length,r=0;r<n;r++){if(null==e)return;e=e[t[r]]}return n?e:void 0}function ze(e,t,n){var r=$e(e,Ke(t));return I(r)?n:r}function Ge(e,t){for(var n=(t=Ke(t)).length,r=0;r<n;r++){var i=t[r];if(!Y(e,i))return!1;e=e[i]}return!!n}function He(e){return e}function Je(e){return e=qe({},e),function(t){return he(t,e)}}function Ye(e){return e=Ke(e),function(t){return $e(t,e)}}function Qe(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,o){return e.call(t,n,r,i,o)}}return function(){return e.apply(t,arguments)}}function Xe(e,t,n){return null==e?He:V(e)?Qe(e,t,n):A(e)&&!J(e)?Je(e):Ye(e)}function Ze(e,t){return Xe(e,t,1/0)}function et(e,t,n){return pe.iteratee!==Ze?pe.iteratee(e,t):Xe(e,t,n)}function tt(e,t,n){t=et(t,n);for(var r=le(e),i=r.length,o={},u=0;u<i;u++){var s=r[u];o[s]=t(e[s],s,e)}return o}function nt(){}function rt(e){return null==e?nt:function(t){return ze(e,t)}}function it(e,t,n){var r=Array(Math.max(0,e));t=Qe(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r}function ot(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}pe.toPath=Ve,pe.iteratee=Ze;const ut=Date.now||function(){return(new Date).getTime()};function st(e){var t=function(t){return e[t]},n="(?:"+le(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(i,t):e}}const at={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},ct=st(at),lt=st(Te(at)),ft=pe.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var ht=/(.)^/,pt={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},dt=/\\|'|\r|\n|\u2028|\u2029/g;function vt(e){return"\\"+pt[e]}var mt=/^\s*(\w|\$)+\s*$/;function yt(e,t,n){!t&&n&&(t=n),t=Ue({},t,pe.templateSettings);var r=RegExp([(t.escape||ht).source,(t.interpolate||ht).source,(t.evaluate||ht).source].join("|")+"|$","g"),i=0,o="__p+='";e.replace(r,(function(t,n,r,u,s){return o+=e.slice(i,s).replace(dt,vt),i=s+t.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":u&&(o+="';\n"+u+"\n__p+='"),t})),o+="';\n";var u,s=t.variable;if(s){if(!mt.test(s))throw new Error("variable is not a bare identifier: "+s)}else o="with(obj||{}){\n"+o+"}\n",s="obj";o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{u=new Function(s,"_",o)}catch(e){throw e.source=o,e}var a=function(e){return u.call(this,e,pe)};return a.source="function("+s+"){\n"+o+"}",a}function gt(e,t,n){var r=(t=Ke(t)).length;if(!r)return V(n)?n.call(e):n;for(var i=0;i<r;i++){var o=null==e?void 0:e[t[i]];void 0===o&&(o=n,i=r),e=V(o)?o.call(e):o}return e}var _t=0;function bt(e){var t=++_t+"";return e?e+t:t}function wt(e){var t=pe(e);return t._chain=!0,t}function St(e,t,n,r,i){if(!(r instanceof t))return e.apply(n,i);var o=Be(e.prototype),u=e.apply(o,i);return A(u)?u:o}var Ot=C((function(e,t){var n=Ot.placeholder,r=function(){for(var i=0,o=t.length,u=Array(o),s=0;s<o;s++)u[s]=t[s]===n?arguments[i++]:t[s];for(;i<arguments.length;)u.push(arguments[i++]);return St(e,r,this,this,u)};return r}));Ot.placeholder=pe;const Et=Ot,xt=C((function(e,t,n){if(!V(e))throw new TypeError("Bind must be called on a function");var r=C((function(i){return St(e,r,t,this,n.concat(i))}));return r})),jt=ne(ae);function Ct(e,t,n,r){if(r=r||[],t||0===t){if(t<=0)return r.concat(e)}else t=1/0;for(var i=r.length,o=0,u=ae(e);o<u;o++){var s=e[o];if(jt(s)&&(J(s)||X(s)))if(t>1)Ct(s,t-1,n,r),i=r.length;else for(var a=0,c=s.length;a<c;)r[i++]=s[a++];else n||(r[i++]=s)}return r}const At=C((function(e,t){var n=(t=Ct(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=xt(e[r],e)}return e}));function Mt(e,t){var n=function(r){var i=n.cache,o=""+(t?t.apply(this,arguments):r);return Y(i,o)||(i[o]=e.apply(this,arguments)),i[o]};return n.cache={},n}const It=C((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})),Dt=Et(It,pe,1);function kt(e,t,n){var r,i,o,u,s=0;n||(n={});var a=function(){s=!1===n.leading?0:ut(),r=null,u=e.apply(i,o),r||(i=o=null)},c=function(){var c=ut();s||!1!==n.leading||(s=c);var l=t-(c-s);return i=this,o=arguments,l<=0||l>t?(r&&(clearTimeout(r),r=null),s=c,u=e.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(a,l)),u};return c.cancel=function(){clearTimeout(r),s=0,r=i=o=null},c}function Tt(e,t,n){var r,i,o,u,s,a=function(){var c=ut()-i;t>c?r=setTimeout(a,t-c):(r=null,n||(u=e.apply(s,o)),r||(o=s=null))},c=C((function(c){return s=this,o=c,i=ut(),r||(r=setTimeout(a,t),n&&(u=e.apply(s,o))),u}));return c.cancel=function(){clearTimeout(r),r=o=s=null},c}function Nt(e,t){return Et(t,e)}function Rt(e){return function(){return!e.apply(this,arguments)}}function Pt(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}function qt(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function Ut(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}const Bt=Et(Ut,2);function Ft(e,t,n){t=et(t,n);for(var r,i=le(e),o=0,u=i.length;o<u;o++)if(t(e[r=i[o]],r,e))return r}function Lt(e){return function(t,n,r){n=et(n,r);for(var i=ae(t),o=e>0?0:i-1;o>=0&&o<i;o+=e)if(n(t[o],o,t))return o;return-1}}const Wt=Lt(1),Vt=Lt(-1);function Kt(e,t,n,r){for(var i=(n=et(n,r,1))(t),o=0,u=ae(e);o<u;){var s=Math.floor((o+u)/2);n(e[s])<i?o=s+1:u=s}return o}function $t(e,t,n){return function(r,i,o){var u=0,s=ae(r);if("number"==typeof o)e>0?u=o>=0?o:Math.max(o+s,u):s=o>=0?Math.min(o+1,s):o+s+1;else if(n&&o&&s)return r[o=n(r,i)]===i?o:-1;if(i!=i)return(o=t(p.call(r,u,s),ee))>=0?o+u:-1;for(o=e>0?u:s-1;o>=0&&o<s;o+=e)if(r[o]===i)return o;return-1}}const zt=$t(1,Wt,Kt),Gt=$t(-1,Vt);function Ht(e,t,n){var r=(jt(e)?Wt:Ft)(e,t,n);if(void 0!==r&&-1!==r)return e[r]}function Jt(e,t){return Ht(e,Je(t))}function Yt(e,t,n){var r,i;if(t=Qe(t,n),jt(e))for(r=0,i=e.length;r<i;r++)t(e[r],r,e);else{var o=le(e);for(r=0,i=o.length;r<i;r++)t(e[o[r]],o[r],e)}return e}function Qt(e,t,n){t=et(t,n);for(var r=!jt(e)&&le(e),i=(r||e).length,o=Array(i),u=0;u<i;u++){var s=r?r[u]:u;o[u]=t(e[s],s,e)}return o}function Xt(e){return function(t,n,r,i){var o=arguments.length>=3;return function(t,n,r,i){var o=!jt(t)&&le(t),u=(o||t).length,s=e>0?0:u-1;for(i||(r=t[o?o[s]:s],s+=e);s>=0&&s<u;s+=e){var a=o?o[s]:s;r=n(r,t[a],a,t)}return r}(t,Qe(n,i,4),r,o)}}const Zt=Xt(1),en=Xt(-1);function tn(e,t,n){var r=[];return t=et(t,n),Yt(e,(function(e,n,i){t(e,n,i)&&r.push(e)})),r}function nn(e,t,n){return tn(e,Rt(et(t)),n)}function rn(e,t,n){t=et(t,n);for(var r=!jt(e)&&le(e),i=(r||e).length,o=0;o<i;o++){var u=r?r[o]:o;if(!t(e[u],u,e))return!1}return!0}function on(e,t,n){t=et(t,n);for(var r=!jt(e)&&le(e),i=(r||e).length,o=0;o<i;o++){var u=r?r[o]:o;if(t(e[u],u,e))return!0}return!1}function un(e,t,n,r){return jt(e)||(e=De(e)),("number"!=typeof n||r)&&(n=0),zt(e,t,n)>=0}const sn=C((function(e,t,n){var r,i;return V(t)?i=t:(t=Ke(t),r=t.slice(0,-1),t=t[t.length-1]),Qt(e,(function(e){var o=i;if(!o){if(r&&r.length&&(e=$e(e,r)),null==e)return;o=e[t]}return null==o?o:o.apply(e,n)}))}));function an(e,t){return Qt(e,Ye(t))}function cn(e,t){return tn(e,Je(t))}function ln(e,t,n){var r,i,o=-1/0,u=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,a=(e=jt(e)?e:De(e)).length;s<a;s++)null!=(r=e[s])&&r>o&&(o=r);else t=et(t,n),Yt(e,(function(e,n,r){((i=t(e,n,r))>u||i===-1/0&&o===-1/0)&&(o=e,u=i)}));return o}function fn(e,t,n){var r,i,o=1/0,u=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,a=(e=jt(e)?e:De(e)).length;s<a;s++)null!=(r=e[s])&&r<o&&(o=r);else t=et(t,n),Yt(e,(function(e,n,r){((i=t(e,n,r))<u||i===1/0&&o===1/0)&&(o=e,u=i)}));return o}var hn=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function pn(e){return e?J(e)?p.call(e):N(e)?e.match(hn):jt(e)?Qt(e,He):De(e):[]}function dn(e,t,n){if(null==t||n)return jt(e)||(e=De(e)),e[ot(e.length-1)];var r=pn(e),i=ae(r);t=Math.max(Math.min(t,i),0);for(var o=i-1,u=0;u<t;u++){var s=ot(u,o),a=r[u];r[u]=r[s],r[s]=a}return r.slice(0,t)}function vn(e){return dn(e,1/0)}function mn(e,t,n){var r=0;return t=et(t,n),an(Qt(e,(function(e,n,i){return{value:e,index:r++,criteria:t(e,n,i)}})).sort((function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index})),"value")}function yn(e,t){return function(n,r,i){var o=t?[[],[]]:{};return r=et(r,i),Yt(n,(function(t,i){var u=r(t,i,n);e(o,t,u)})),o}}const gn=yn((function(e,t,n){Y(e,n)?e[n].push(t):e[n]=[t]})),bn=yn((function(e,t,n){e[n]=t})),wn=yn((function(e,t,n){Y(e,n)?e[n]++:e[n]=1})),Sn=yn((function(e,t,n){e[n?0:1].push(t)}),!0);function On(e){return null==e?0:jt(e)?e.length:le(e).length}function En(e,t,n){return t in n}const xn=C((function(e,t){var n={},r=t[0];if(null==e)return n;V(r)?(t.length>1&&(r=Qe(r,t[1])),t=_e(e)):(r=En,t=Ct(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i<o;i++){var u=t[i],s=e[u];r(s,u,e)&&(n[u]=s)}return n})),jn=C((function(e,t){var n,r=t[0];return V(r)?(r=Rt(r),t.length>1&&(n=t[1])):(t=Qt(Ct(t,!1,!1),String),r=function(e,n){return!un(t,n)}),xn(e,r,n)}));function Cn(e,t,n){return p.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function An(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:Cn(e,e.length-t)}function Mn(e,t,n){return p.call(e,null==t||n?1:t)}function In(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:Mn(e,Math.max(0,e.length-t))}function Dn(e){return tn(e,Boolean)}function kn(e,t){return Ct(e,t,!1)}const Tn=C((function(e,t){return t=Ct(t,!0,!0),tn(e,(function(e){return!un(t,e)}))})),Nn=C((function(e,t){return Tn(e,t)}));function Rn(e,t,n,r){D(t)||(r=n,n=t,t=!1),null!=n&&(n=et(n,r));for(var i=[],o=[],u=0,s=ae(e);u<s;u++){var a=e[u],c=n?n(a,u,e):a;t&&!n?(u&&o===c||i.push(a),o=c):n?un(o,c)||(o.push(c),i.push(a)):un(i,a)||i.push(a)}return i}const Pn=C((function(e){return Rn(Ct(e,!0,!0))}));function qn(e){for(var t=[],n=arguments.length,r=0,i=ae(e);r<i;r++){var o=e[r];if(!un(t,o)){var u;for(u=1;u<n&&un(arguments[u],o);u++);u===n&&t.push(o)}}return t}function Un(e){for(var t=e&&ln(e,ae).length||0,n=Array(t),r=0;r<t;r++)n[r]=an(e,r);return n}const Bn=C(Un);function Fn(e,t){for(var n={},r=0,i=ae(e);r<i;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n}function Ln(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),i=Array(r),o=0;o<r;o++,e+=n)i[o]=e;return i}function Wn(e,t){if(null==t||t<1)return[];for(var n=[],r=0,i=e.length;r<i;)n.push(p.call(e,r,r+=t));return n}function Vn(e,t){return e._chain?pe(t).chain():t}function Kn(e){return Yt(Ne(e),(function(t){var n=pe[t]=e[t];pe.prototype[t]=function(){var e=[this._wrapped];return h.apply(e,arguments),Vn(this,n.apply(pe,e))}})),pe}Yt(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=c[e];pe.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),Vn(this,n)}})),Yt(["concat","join","slice"],(function(e){var t=c[e];pe.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),Vn(this,e)}}));const $n=pe;var zn=Kn(e);zn._=zn;const Gn=zn;class Hn extends t.Component{constructor(e){super(),this.state={over:e.isOver}}componentWillReceiveProps(e){this.state.over=e.isOver}render(){const{display_name:e}=this.props.author;return(0,t.createElement)("div",{onMouseOver:this.onMouseOver.bind(this,!0),onMouseOut:this.onMouseOver.bind(this,!1),onClick:this.onClick.bind(this),className:"additional-authors-search-item "+(this.state.over?"is-over":"")},e)}onMouseOver(e){this.setState({over:e})}onClick(){this.props.onSelect(this.props.author)}}const Jn=Hn;class Yn extends t.Component{constructor(e){super(),this.state={over:e.isOver}}componentWillReceiveProps(e){this.state.over=e.isOver}render(){return(0,t.createElement)("div",{onMouseOver:this.onMouseOver.bind(this,!0),onMouseOut:this.onMouseOver.bind(this,!1),onClick:this.onClick.bind(this),className:"additional-authors-new-item "+(this.state.over?"is-over":"")},'New user "',this.props.name,'"')}onMouseOver(e){this.setState({over:e})}onClick(){this.props.onSelect(this.props.name)}}const Qn=Yn;class Xn extends t.Component{constructor(e){super(e),this.state={query:"",over_index:0,search_result:[],focus:!1}}render(){const{query:e}=this.state;return(0,t.createElement)("div",{className:"additional-authors-search",onKeyUp:this.onKeyUp.bind(this)},(0,t.createElement)("label",null,this.props.languages.label,(0,t.createElement)("br",null),(0,t.createElement)("input",{className:"additional-authors-search__input",type:"text",value:e,onKeyDown:this.onKeyDown.bind(this),onChange:this.onChange.bind(this),onFocus:this.onFocusSearch.bind(this,!0),onBlur:this.onFocusSearch.bind(this,!1)})),this.renderList())}renderList(){const{selected:e}=this.props,{over_index:n,search_result:r,focus:i,query:o}=this.state;if(i){const e=""!==o?(0,t.createElement)(Qn,{name:o,isOver:n===r.length,onSelect:this.onNewItem.bind(this)}):null;return(0,t.createElement)("div",{className:"additional-authors-search-list"},r.map(((e,r)=>(0,t.createElement)(Jn,{key:e.ID,author:e,onSelect:this.onSelect.bind(this,e),isOver:n===r}))),e)}return null}onChange(e){e&&(this.state.query=e.target.value);const{users:t,selected:n}=this.props,{query:r}=this.state;let i=[];if(""!==r){for(let e of t)if(e.display_name.toLowerCase().indexOf(r.toLowerCase())>-1){if(n.indexOf(e.ID+"")>=0||n.indexOf(parseInt(e.ID))>=0)continue;i.unshift(e)}}else i=[];this.setState({over_index:0,search_result:i})}onFocusSearch(e){clearTimeout(this.closeTimeout),e?this.setState({focus:e}):this.closeTimeout=setTimeout((()=>{this.setState({focus:e})}),600)}onSelect(e){this.props.onSelect(e),this.setState({focus:!1}),this.onChange()}onNewItem(e){""!==e&&(this.props.onSelect({ID:0,display_name:e,user_nicename:"-"}),this.setState({query:"",search_result:[]}))}onKeyDown(e){13===e.keyCode&&this.state.focus?(e.preventDefault(),void 0!==this.state.search_result[this.state.over_index]&&this.onSelect(this.state.search_result[this.state.over_index])):this.setState({focus:!0})}onKeyUp(e){this.state.focus&&(27!==e.keyCode?(38===e.keyCode?(e.preventDefault(),this.state.over_index--):40===e.keyCode&&(e.preventDefault(),this.state.over_index++),this.state.over_index>this.state.search_result.length?this.state.over_index=this.state.search_result.length:this.state.over_index<0&&(this.state.over_index=0),this.setState({over_index:this.state.over_index})):this.setState({search_result:[]}))}}Xn.defaultProps={users:[]},Xn.propTypes={users:u().array.isRequired,selected:u().array.isRequired,languages:u().object.isRequired,onSelect:u().func.isRequired};const Zn=Xn,er=({onClick:e})=>(0,t.createElement)("span",{className:"author-item__delete",onClick:e},"×"),tr=({author:e})=>{const{ID:n,display_name:r}=e;return n>0?(0,t.createElement)("a",{href:`/wp-admin/user-edit.php?user_id=${n}`,target:"_blank"},r):r},nr=({author:e,isMainAuthor:n,index:r,onUnselect:i,onChangePosition:o})=>(0,t.createElement)("div",{className:`author-item${n?" is-main-author":""}${e.ID<0?" is-new-author":""}`},(0,t.createElement)("span",{className:"autor-item__name"},(0,t.createElement)(tr,{author:e}),(0,t.createElement)("span",{className:"author-item__nicename"},e.user_nicename)),n?null:(0,t.createElement)(er,{onClick:i}),(0,t.createElement)("span",{className:"author-item__move author-item__up",onClick:()=>o(r-1)},"▲"),(0,t.createElement)("span",{className:"author-item__move author-item__down",onClick:()=>o(r+1)},"▼"),(0,t.createElement)("input",{type:"hidden",name:"additional_authors[ids][]",value:e.ID}),(0,t.createElement)("input",{type:"hidden",name:"additional_authors[names][]",value:e.display_name}));nr.defaultProps={author:{ID:-1,display_name:"",user_login:""},className:""},nr.propTypes={author:u().object.isRequired,index:u().number.isRequired,onUnselect:u().func.isRequired,onChangePosition:u().func.isRequired,isMainAuthor:u().bool.isRequired};const rr=nr;class ir extends t.Component{constructor(e){super(e),this.state={users:e.users,selected:this.props.selected,new_user_id:-1}}componentDidMount(){this.dispatchChanged(),this.getMainUserControl()}render(){const{language:e,isGutenbergActive:n}=this.props,{selected:r,users:i,new_users:o,main_author:u}=this.state;let s=null;return n&&(s=(0,t.createElement)("input",{type:"hidden",name:"additional_authors_is_gutenberg",value:"it-is"})),r.map((e=>e.ID)),(0,t.createElement)("div",{className:"additional-authors"},s,(0,t.createElement)(Zn,{users:i,selected:r,languages:e,onSelect:this.onSelect.bind(this)}),(0,t.createElement)("hr",null),(0,t.createElement)("p",null,(0,t.createElement)("i",null,e.description)),(0,t.createElement)("div",null,r.map(((e,r)=>{if(n&&0===r)return null;for(const n in i){if(!i.hasOwnProperty(n))continue;const o=i[n];if(parseInt(o.ID)===parseInt(e))return(0,t.createElement)(rr,{key:e,index:r,author:o,onUnselect:this.onUnselect.bind(this,o),onChangePosition:this.onChangePosition.bind(this,o,r),isMainAuthor:0===r})}return null}))))}onSelect(e){0==e.ID&&(e.ID=this.state.new_user_id--,this.state.users.push(e)),this.state.selected.push(e.ID),this.state.selected=Gn.unique(this.state.selected),this.setState({selected:this.state.selected}),this.dispatchChanged()}onUnselect(e){let t=[];if(this.state.main_author!=e.ID){for(let n of this.state.selected)n!=e.ID&&t.push(n);this.setState({selected:t}),this.dispatchChanged()}else console.log("you cannot delete main author")}onChangePosition(e,t,n){let r=[];if(!(0==n&&e.ID<=0)){for(let e in this.state.selected)this.state.selected.hasOwnProperty(e)&&(e==t?r.push(this.state.selected[n]):e==n?r.push(this.state.selected[t]):r.push(this.state.selected[e]));this.setMainUserID(r[0]),this.setState({selected:r,main_author:this.getMainUserID()}),this.dispatchChanged()}}onMainAuthorChanged(e){const t=e.target.value;let n=0;for(;n<this.state.selected.length;){if(this.state.selected[n]===t){this.state.selected.splice(n,1);break}n++}this.state.selected.unshift(t),this.setState({selected:this.state.selected})}getMainUserControl(){if(this.props.isGutenbergActive)return null;if(null!=this._main_user_select)return this._main_user_select;let e=document.getElementById("post_author_override");return null==e&&(e=document.getElementById("post-author-selector-1")),null!=e&&(this._main_user_select=e,this._main_user_select.addEventListener("change",this.onMainAuthorChanged.bind(this))),this._main_user_select}setMainUserID(e){const t=this.getMainUserControl();void 0!==t&&null!=t&&(t.value=e,t.dispatchEvent(new Event("change")))}getMainUserID(){const e=this.getMainUserControl();return null!=e?e.value:-1}isSelected(e){for(let t of this.state.selected)if(t===e)return!0;return!1}dispatchChanged(){clearTimeout(this.dispatchTimeout),this.dispatchTimeout=setTimeout((()=>{const e=[];for(const t of this.state.selected)for(const n of this.props.users)parseInt(n.ID)===parseInt(t)&&e.push({...n});this.props.onAuthorsChange(e)}),300)}}ir.defaultProps={users:[],language:{},onAuthorsChange:()=>{}},ir.propTypes={isGutenbergActive:u().bool.isRequired,users:u().array.isRequired,selected:u().array.isRequired,language:u().object.isRequired,onAuthorsChange:u().func};const or=ir;document.addEventListener("DOMContentLoaded",(function(e){const{language:n,users:r,selected:o,root_id:u}=AdditionalAuthors;i().render((0,t.createElement)(or,{isGutenbergActive:!1,language:n,users:r,selected:o,onAuthorsChange:e=>{document.dispatchEvent(new CustomEvent("onAdditionalAuthorsChange",{detail:e}))}}),document.getElementById(u))}))})()})(); 2 2 //# sourceMappingURL=additional-authors-meta-box.js.map -
additional-authors/tags/1.3.5/dist/additional-authors-meta-box.js.map
r2951153 r3012943 1 {"version":3,"file":"additional-authors-meta-box.js","mappings":" wCASA,IAAIA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,IAASJ,EAAS,OAAO,EAE7B,OAAO,CACP,CACDxB,eAAAA,GACClJ,aAAaxM,KAAKuX,iBAClBvX,KAAKuX,gBAAkB1L,YAAW,KACjC,MAAMuI,EAAQ,GACd,IAAI,MAAMoD,KAAOxX,KAAKmS,MAAM4B,SAC3B,IAAI,MAAMM,KAAQrU,KAAKtG,MAAM0a,MACzBG,SAASF,EAAKH,MAAQK,SAASiD,IACjCpD,EAAMpW,KAAK,IAAIqW,IAIlBrU,KAAKtG,MAAM+d,gBAAgBrD,EAA3B,GACE,IAEH,EAMFmB,GAAQV,aAAe,CACtBT,MAAO,GACPwB,SAAU,CAAC,EACX6B,gBAAiB,QAMlBlC,GAAQT,UAAY,CACnBe,kBAAmBna,IAAAA,KAAAA,WACnB0Y,MAAO1Y,IAAAA,MAAAA,WACPqY,SAAUrY,IAAAA,MAAAA,WACVka,SAAUla,IAAAA,OAAAA,WACV+b,gBAAiB/b,IAAAA,MAMlB,YC7OAoF,SAASmW,iBAAiB,oBAAoB,SAASS,GAMtD,MAAM,SAAC9B,EAAD,MAAWxB,EAAX,SAAkBL,EAAlB,QAA4B4D,GAAWC,kBAE7CC,IAAAA,QACC,mBAAC,GAAD,CACChC,mBAAmB,EACnBD,SAAUA,EACVxB,MAAOA,EACJL,SAAUA,EACb0D,gBAAkBK,IACjBhX,SAASqW,cAAc,IAAIY,YAAY,4BAA6B,CAAEC,OAAQF,IAA9E,IAGFhX,SAASkW,eAAeW,GAEzB,G","sources":["webpack://@palasthotel/additional-authors/./node_modules/prop-types/factoryWithThrowingShims.js","webpack://@palasthotel/additional-authors/./node_modules/prop-types/index.js","webpack://@palasthotel/additional-authors/./node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack://@palasthotel/additional-authors/webpack/bootstrap","webpack://@palasthotel/additional-authors/webpack/runtime/compat get default export","webpack://@palasthotel/additional-authors/webpack/runtime/define property getters","webpack://@palasthotel/additional-authors/webpack/runtime/hasOwnProperty shorthand","webpack://@palasthotel/additional-authors/webpack/runtime/make namespace object","webpack://@palasthotel/additional-authors/external window [\"wp\",\"element\"]","webpack://@palasthotel/additional-authors/external window \"ReactDOM\"","webpack://@palasthotel/additional-authors/external window \"React\"","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_setup.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/restArguments.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isObject.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isNull.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isUndefined.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isBoolean.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isElement.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_tagTester.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isString.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isNumber.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isDate.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isRegExp.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isError.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isSymbol.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isArrayBuffer.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isFunction.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_hasObjectTag.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_stringTagBug.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isDataView.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isArray.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_has.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isArguments.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isFinite.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isNaN.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/constant.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_createSizePropertyCheck.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_shallowProperty.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_getByteLength.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_isBufferLike.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isTypedArray.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_getLength.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_collectNonEnumProps.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/keys.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isEmpty.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isMatch.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/underscore.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_toBufferView.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isEqual.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/allKeys.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_methodFingerprint.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isMap.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isWeakMap.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isSet.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isWeakSet.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/values.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/pairs.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/invert.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/functions.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_createAssigner.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/extend.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/extendOwn.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/defaults.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_baseCreate.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/create.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/clone.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/tap.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/toPath.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_toPath.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_deepGet.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/get.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/has.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/identity.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/matcher.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/property.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_optimizeCb.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_baseIteratee.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/iteratee.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_cb.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/mapObject.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/noop.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/propertyOf.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/times.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/random.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/now.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_createEscaper.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_escapeMap.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/escape.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/unescape.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_unescapeMap.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/templateSettings.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/template.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/result.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/uniqueId.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/chain.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_executeBound.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/partial.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/bind.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_isArrayLike.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_flatten.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/bindAll.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/memoize.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/delay.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/defer.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/throttle.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/debounce.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/wrap.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/negate.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/compose.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/after.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/before.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/once.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/findKey.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_createPredicateIndexFinder.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/findIndex.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/findLastIndex.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/sortedIndex.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_createIndexFinder.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/indexOf.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/lastIndexOf.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/find.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/findWhere.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/each.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/map.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_createReduce.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/reduce.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/reduceRight.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/filter.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/reject.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/every.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/some.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/contains.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/invoke.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/pluck.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/where.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/max.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/min.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/toArray.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/sample.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/shuffle.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/sortBy.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_group.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/groupBy.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/indexBy.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/countBy.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/partition.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/size.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_keyInObj.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/pick.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/omit.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/initial.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/first.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/rest.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/last.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/compact.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/flatten.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/difference.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/without.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/uniq.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/union.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/intersection.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/unzip.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/zip.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/object.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/range.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/chunk.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_chainResult.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/mixin.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/underscore-array-methods.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/index-default.js","webpack://@palasthotel/additional-authors/./src/meta-box/search-item.jsx","webpack://@palasthotel/additional-authors/./src/meta-box/new-item.jsx","webpack://@palasthotel/additional-authors/./src/meta-box/search.jsx","webpack://@palasthotel/additional-authors/./src/meta-box/author-item.jsx","webpack://@palasthotel/additional-authors/./src/meta-box/meta-box.jsx","webpack://@palasthotel/additional-authors/./src/meta-box.js"],"sourcesContent":["/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"element\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"ReactDOM\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"React\"];","// Current version.\nexport var VERSION = '1.13.6';\n\n// Establish the root object, `window` (`self`) in the browser, `global`\n// on the server, or `this` in some virtual machines. We use `self`\n// instead of `window` for `WebWorker` support.\nexport var root = (typeof self == 'object' && self.self === self && self) ||\n (typeof global == 'object' && global.global === global && global) ||\n Function('return this')() ||\n {};\n\n// Save bytes in the minified (but not gzipped) version:\nexport var ArrayProto = Array.prototype, ObjProto = Object.prototype;\nexport var SymbolProto = typeof Symbol !== 'undefined' ? Symbol.prototype : null;\n\n// Create quick reference variables for speed access to core prototypes.\nexport var push = ArrayProto.push,\n slice = ArrayProto.slice,\n toString = ObjProto.toString,\n hasOwnProperty = ObjProto.hasOwnProperty;\n\n// Modern feature detection.\nexport var supportsArrayBuffer = typeof ArrayBuffer !== 'undefined',\n supportsDataView = typeof DataView !== 'undefined';\n\n// All **ECMAScript 5+** native function implementations that we hope to use\n// are declared here.\nexport var nativeIsArray = Array.isArray,\n nativeKeys = Object.keys,\n nativeCreate = Object.create,\n nativeIsView = supportsArrayBuffer && ArrayBuffer.isView;\n\n// Create references to these builtin functions because we override them.\nexport var _isNaN = isNaN,\n _isFinite = isFinite;\n\n// Keys in IE < 9 that won't be iterated by `for key in ...` and thus missed.\nexport var hasEnumBug = !{toString: null}.propertyIsEnumerable('toString');\nexport var nonEnumerableProps = ['valueOf', 'isPrototypeOf', 'toString',\n 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString'];\n\n// The largest integer that can be represented exactly.\nexport var MAX_ARRAY_INDEX = Math.pow(2, 53) - 1;\n","// Some functions take a variable number of arguments, or a few expected\n// arguments at the beginning and then a variable number of values to operate\n// on. This helper accumulates all remaining arguments past the function’s\n// argument length (or an explicit `startIndex`), into an array that becomes\n// the last argument. Similar to ES6’s \"rest parameter\".\nexport default function restArguments(func, startIndex) {\n startIndex = startIndex == null ? func.length - 1 : +startIndex;\n return function() {\n var length = Math.max(arguments.length - startIndex, 0),\n rest = Array(length),\n index = 0;\n for (; index < length; index++) {\n rest[index] = arguments[index + startIndex];\n }\n switch (startIndex) {\n case 0: return func.call(this, rest);\n case 1: return func.call(this, arguments[0], rest);\n case 2: return func.call(this, arguments[0], arguments[1], rest);\n }\n var args = Array(startIndex + 1);\n for (index = 0; index < startIndex; index++) {\n args[index] = arguments[index];\n }\n args[startIndex] = rest;\n return func.apply(this, args);\n };\n}\n","// Is a given variable an object?\nexport default function isObject(obj) {\n var type = typeof obj;\n return type === 'function' || (type === 'object' && !!obj);\n}\n","// Is a given value equal to null?\nexport default function isNull(obj) {\n return obj === null;\n}\n","// Is a given variable undefined?\nexport default function isUndefined(obj) {\n return obj === void 0;\n}\n","import { toString } from './_setup.js';\n\n// Is a given value a boolean?\nexport default function isBoolean(obj) {\n return obj === true || obj === false || toString.call(obj) === '[object Boolean]';\n}\n","// Is a given value a DOM element?\nexport default function isElement(obj) {\n return !!(obj && obj.nodeType === 1);\n}\n","import { toString } from './_setup.js';\n\n// Internal function for creating a `toString`-based type tester.\nexport default function tagTester(name) {\n var tag = '[object ' + name + ']';\n return function(obj) {\n return toString.call(obj) === tag;\n };\n}\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('String');\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('Number');\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('Date');\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('RegExp');\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('Error');\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('Symbol');\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('ArrayBuffer');\n","import tagTester from './_tagTester.js';\nimport { root } from './_setup.js';\n\nvar isFunction = tagTester('Function');\n\n// Optimize `isFunction` if appropriate. Work around some `typeof` bugs in old\n// v8, IE 11 (#1621), Safari 8 (#1929), and PhantomJS (#2236).\nvar nodelist = root.document && root.document.childNodes;\nif (typeof /./ != 'function' && typeof Int8Array != 'object' && typeof nodelist != 'function') {\n isFunction = function(obj) {\n return typeof obj == 'function' || false;\n };\n}\n\nexport default isFunction;\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('Object');\n","import { supportsDataView } from './_setup.js';\nimport hasObjectTag from './_hasObjectTag.js';\n\n// In IE 10 - Edge 13, `DataView` has string tag `'[object Object]'`.\n// In IE 11, the most common among them, this problem also applies to\n// `Map`, `WeakMap` and `Set`.\nexport var hasStringTagBug = (\n supportsDataView && hasObjectTag(new DataView(new ArrayBuffer(8)))\n ),\n isIE11 = (typeof Map !== 'undefined' && hasObjectTag(new Map));\n","import tagTester from './_tagTester.js';\nimport isFunction from './isFunction.js';\nimport isArrayBuffer from './isArrayBuffer.js';\nimport { hasStringTagBug } from './_stringTagBug.js';\n\nvar isDataView = tagTester('DataView');\n\n// In IE 10 - Edge 13, we need a different heuristic\n// to determine whether an object is a `DataView`.\nfunction ie10IsDataView(obj) {\n return obj != null && isFunction(obj.getInt8) && isArrayBuffer(obj.buffer);\n}\n\nexport default (hasStringTagBug ? ie10IsDataView : isDataView);\n","import { nativeIsArray } from './_setup.js';\nimport tagTester from './_tagTester.js';\n\n// Is a given value an array?\n// Delegates to ECMA5's native `Array.isArray`.\nexport default nativeIsArray || tagTester('Array');\n","import { hasOwnProperty } from './_setup.js';\n\n// Internal function to check whether `key` is an own property name of `obj`.\nexport default function has(obj, key) {\n return obj != null && hasOwnProperty.call(obj, key);\n}\n","import tagTester from './_tagTester.js';\nimport has from './_has.js';\n\nvar isArguments = tagTester('Arguments');\n\n// Define a fallback version of the method in browsers (ahem, IE < 9), where\n// there isn't any inspectable \"Arguments\" type.\n(function() {\n if (!isArguments(arguments)) {\n isArguments = function(obj) {\n return has(obj, 'callee');\n };\n }\n}());\n\nexport default isArguments;\n","import { _isFinite } from './_setup.js';\nimport isSymbol from './isSymbol.js';\n\n// Is a given object a finite number?\nexport default function isFinite(obj) {\n return !isSymbol(obj) && _isFinite(obj) && !isNaN(parseFloat(obj));\n}\n","import { _isNaN } from './_setup.js';\nimport isNumber from './isNumber.js';\n\n// Is the given value `NaN`?\nexport default function isNaN(obj) {\n return isNumber(obj) && _isNaN(obj);\n}\n","// Predicate-generating function. Often useful outside of Underscore.\nexport default function constant(value) {\n return function() {\n return value;\n };\n}\n","import { MAX_ARRAY_INDEX } from './_setup.js';\n\n// Common internal logic for `isArrayLike` and `isBufferLike`.\nexport default function createSizePropertyCheck(getSizeProperty) {\n return function(collection) {\n var sizeProperty = getSizeProperty(collection);\n return typeof sizeProperty == 'number' && sizeProperty >= 0 && sizeProperty <= MAX_ARRAY_INDEX;\n }\n}\n","// Internal helper to generate a function to obtain property `key` from `obj`.\nexport default function shallowProperty(key) {\n return function(obj) {\n return obj == null ? void 0 : obj[key];\n };\n}\n","import shallowProperty from './_shallowProperty.js';\n\n// Internal helper to obtain the `byteLength` property of an object.\nexport default shallowProperty('byteLength');\n","import createSizePropertyCheck from './_createSizePropertyCheck.js';\nimport getByteLength from './_getByteLength.js';\n\n// Internal helper to determine whether we should spend extensive checks against\n// `ArrayBuffer` et al.\nexport default createSizePropertyCheck(getByteLength);\n","import { supportsArrayBuffer, nativeIsView, toString } from './_setup.js';\nimport isDataView from './isDataView.js';\nimport constant from './constant.js';\nimport isBufferLike from './_isBufferLike.js';\n\n// Is a given value a typed array?\nvar typedArrayPattern = /\\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\\]/;\nfunction isTypedArray(obj) {\n // `ArrayBuffer.isView` is the most future-proof, so use it when available.\n // Otherwise, fall back on the above regular expression.\n return nativeIsView ? (nativeIsView(obj) && !isDataView(obj)) :\n isBufferLike(obj) && typedArrayPattern.test(toString.call(obj));\n}\n\nexport default supportsArrayBuffer ? isTypedArray : constant(false);\n","import shallowProperty from './_shallowProperty.js';\n\n// Internal helper to obtain the `length` property of an object.\nexport default shallowProperty('length');\n","import { nonEnumerableProps, ObjProto } from './_setup.js';\nimport isFunction from './isFunction.js';\nimport has from './_has.js';\n\n// Internal helper to create a simple lookup structure.\n// `collectNonEnumProps` used to depend on `_.contains`, but this led to\n// circular imports. `emulatedSet` is a one-off solution that only works for\n// arrays of strings.\nfunction emulatedSet(keys) {\n var hash = {};\n for (var l = keys.length, i = 0; i < l; ++i) hash[keys[i]] = true;\n return {\n contains: function(key) { return hash[key] === true; },\n push: function(key) {\n hash[key] = true;\n return keys.push(key);\n }\n };\n}\n\n// Internal helper. Checks `keys` for the presence of keys in IE < 9 that won't\n// be iterated by `for key in ...` and thus missed. Extends `keys` in place if\n// needed.\nexport default function collectNonEnumProps(obj, keys) {\n keys = emulatedSet(keys);\n var nonEnumIdx = nonEnumerableProps.length;\n var constructor = obj.constructor;\n var proto = (isFunction(constructor) && constructor.prototype) || ObjProto;\n\n // Constructor is a special case.\n var prop = 'constructor';\n if (has(obj, prop) && !keys.contains(prop)) keys.push(prop);\n\n while (nonEnumIdx--) {\n prop = nonEnumerableProps[nonEnumIdx];\n if (prop in obj && obj[prop] !== proto[prop] && !keys.contains(prop)) {\n keys.push(prop);\n }\n }\n}\n","import isObject from './isObject.js';\nimport { nativeKeys, hasEnumBug } from './_setup.js';\nimport has from './_has.js';\nimport collectNonEnumProps from './_collectNonEnumProps.js';\n\n// Retrieve the names of an object's own properties.\n// Delegates to **ECMAScript 5**'s native `Object.keys`.\nexport default function keys(obj) {\n if (!isObject(obj)) return [];\n if (nativeKeys) return nativeKeys(obj);\n var keys = [];\n for (var key in obj) if (has(obj, key)) keys.push(key);\n // Ahem, IE < 9.\n if (hasEnumBug) collectNonEnumProps(obj, keys);\n return keys;\n}\n","import getLength from './_getLength.js';\nimport isArray from './isArray.js';\nimport isString from './isString.js';\nimport isArguments from './isArguments.js';\nimport keys from './keys.js';\n\n// Is a given array, string, or object empty?\n// An \"empty\" object has no enumerable own-properties.\nexport default function isEmpty(obj) {\n if (obj == null) return true;\n // Skip the more expensive `toString`-based type checks if `obj` has no\n // `.length`.\n var length = getLength(obj);\n if (typeof length == 'number' && (\n isArray(obj) || isString(obj) || isArguments(obj)\n )) return length === 0;\n return getLength(keys(obj)) === 0;\n}\n","import keys from './keys.js';\n\n// Returns whether an object has a given set of `key:value` pairs.\nexport default function isMatch(object, attrs) {\n var _keys = keys(attrs), length = _keys.length;\n if (object == null) return !length;\n var obj = Object(object);\n for (var i = 0; i < length; i++) {\n var key = _keys[i];\n if (attrs[key] !== obj[key] || !(key in obj)) return false;\n }\n return true;\n}\n","import { VERSION } from './_setup.js';\n\n// If Underscore is called as a function, it returns a wrapped object that can\n// be used OO-style. This wrapper holds altered versions of all functions added\n// through `_.mixin`. Wrapped objects may be chained.\nexport default function _(obj) {\n if (obj instanceof _) return obj;\n if (!(this instanceof _)) return new _(obj);\n this._wrapped = obj;\n}\n\n_.VERSION = VERSION;\n\n// Extracts the result from a wrapped and chained object.\n_.prototype.value = function() {\n return this._wrapped;\n};\n\n// Provide unwrapping proxies for some methods used in engine operations\n// such as arithmetic and JSON stringification.\n_.prototype.valueOf = _.prototype.toJSON = _.prototype.value;\n\n_.prototype.toString = function() {\n return String(this._wrapped);\n};\n","import getByteLength from './_getByteLength.js';\n\n// Internal function to wrap or shallow-copy an ArrayBuffer,\n// typed array or DataView to a new view, reusing the buffer.\nexport default function toBufferView(bufferSource) {\n return new Uint8Array(\n bufferSource.buffer || bufferSource,\n bufferSource.byteOffset || 0,\n getByteLength(bufferSource)\n );\n}\n","import _ from './underscore.js';\nimport { toString, SymbolProto } from './_setup.js';\nimport getByteLength from './_getByteLength.js';\nimport isTypedArray from './isTypedArray.js';\nimport isFunction from './isFunction.js';\nimport { hasStringTagBug } from './_stringTagBug.js';\nimport isDataView from './isDataView.js';\nimport keys from './keys.js';\nimport has from './_has.js';\nimport toBufferView from './_toBufferView.js';\n\n// We use this string twice, so give it a name for minification.\nvar tagDataView = '[object DataView]';\n\n// Internal recursive comparison function for `_.isEqual`.\nfunction eq(a, b, aStack, bStack) {\n // Identical objects are equal. `0 === -0`, but they aren't identical.\n // See the [Harmony `egal` proposal](https://wiki.ecmascript.org/doku.php?id=harmony:egal).\n if (a === b) return a !== 0 || 1 / a === 1 / b;\n // `null` or `undefined` only equal to itself (strict comparison).\n if (a == null || b == null) return false;\n // `NaN`s are equivalent, but non-reflexive.\n if (a !== a) return b !== b;\n // Exhaust primitive checks\n var type = typeof a;\n if (type !== 'function' && type !== 'object' && typeof b != 'object') return false;\n return deepEq(a, b, aStack, bStack);\n}\n\n// Internal recursive comparison function for `_.isEqual`.\nfunction deepEq(a, b, aStack, bStack) {\n // Unwrap any wrapped objects.\n if (a instanceof _) a = a._wrapped;\n if (b instanceof _) b = b._wrapped;\n // Compare `[[Class]]` names.\n var className = toString.call(a);\n if (className !== toString.call(b)) return false;\n // Work around a bug in IE 10 - Edge 13.\n if (hasStringTagBug && className == '[object Object]' && isDataView(a)) {\n if (!isDataView(b)) return false;\n className = tagDataView;\n }\n switch (className) {\n // These types are compared by value.\n case '[object RegExp]':\n // RegExps are coerced to strings for comparison (Note: '' + /a/i === '/a/i')\n case '[object String]':\n // Primitives and their corresponding object wrappers are equivalent; thus, `\"5\"` is\n // equivalent to `new String(\"5\")`.\n return '' + a === '' + b;\n case '[object Number]':\n // `NaN`s are equivalent, but non-reflexive.\n // Object(NaN) is equivalent to NaN.\n if (+a !== +a) return +b !== +b;\n // An `egal` comparison is performed for other numeric values.\n return +a === 0 ? 1 / +a === 1 / b : +a === +b;\n case '[object Date]':\n case '[object Boolean]':\n // Coerce dates and booleans to numeric primitive values. Dates are compared by their\n // millisecond representations. Note that invalid dates with millisecond representations\n // of `NaN` are not equivalent.\n return +a === +b;\n case '[object Symbol]':\n return SymbolProto.valueOf.call(a) === SymbolProto.valueOf.call(b);\n case '[object ArrayBuffer]':\n case tagDataView:\n // Coerce to typed array so we can fall through.\n return deepEq(toBufferView(a), toBufferView(b), aStack, bStack);\n }\n\n var areArrays = className === '[object Array]';\n if (!areArrays && isTypedArray(a)) {\n var byteLength = getByteLength(a);\n if (byteLength !== getByteLength(b)) return false;\n if (a.buffer === b.buffer && a.byteOffset === b.byteOffset) return true;\n areArrays = true;\n }\n if (!areArrays) {\n if (typeof a != 'object' || typeof b != 'object') return false;\n\n // Objects with different constructors are not equivalent, but `Object`s or `Array`s\n // from different frames are.\n var aCtor = a.constructor, bCtor = b.constructor;\n if (aCtor !== bCtor && !(isFunction(aCtor) && aCtor instanceof aCtor &&\n isFunction(bCtor) && bCtor instanceof bCtor)\n && ('constructor' in a && 'constructor' in b)) {\n return false;\n }\n }\n // Assume equality for cyclic structures. The algorithm for detecting cyclic\n // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.\n\n // Initializing stack of traversed objects.\n // It's done here since we only need them for objects and arrays comparison.\n aStack = aStack || [];\n bStack = bStack || [];\n var length = aStack.length;\n while (length--) {\n // Linear search. Performance is inversely proportional to the number of\n // unique nested structures.\n if (aStack[length] === a) return bStack[length] === b;\n }\n\n // Add the first object to the stack of traversed objects.\n aStack.push(a);\n bStack.push(b);\n\n // Recursively compare objects and arrays.\n if (areArrays) {\n // Compare array lengths to determine if a deep comparison is necessary.\n length = a.length;\n if (length !== b.length) return false;\n // Deep compare the contents, ignoring non-numeric properties.\n while (length--) {\n if (!eq(a[length], b[length], aStack, bStack)) return false;\n }\n } else {\n // Deep compare objects.\n var _keys = keys(a), key;\n length = _keys.length;\n // Ensure that both objects contain the same number of properties before comparing deep equality.\n if (keys(b).length !== length) return false;\n while (length--) {\n // Deep compare each member\n key = _keys[length];\n if (!(has(b, key) && eq(a[key], b[key], aStack, bStack))) return false;\n }\n }\n // Remove the first object from the stack of traversed objects.\n aStack.pop();\n bStack.pop();\n return true;\n}\n\n// Perform a deep comparison to check if two objects are equal.\nexport default function isEqual(a, b) {\n return eq(a, b);\n}\n","import isObject from './isObject.js';\nimport { hasEnumBug } from './_setup.js';\nimport collectNonEnumProps from './_collectNonEnumProps.js';\n\n// Retrieve all the enumerable property names of an object.\nexport default function allKeys(obj) {\n if (!isObject(obj)) return [];\n var keys = [];\n for (var key in obj) keys.push(key);\n // Ahem, IE < 9.\n if (hasEnumBug) collectNonEnumProps(obj, keys);\n return keys;\n}\n","import getLength from './_getLength.js';\nimport isFunction from './isFunction.js';\nimport allKeys from './allKeys.js';\n\n// Since the regular `Object.prototype.toString` type tests don't work for\n// some types in IE 11, we use a fingerprinting heuristic instead, based\n// on the methods. It's not great, but it's the best we got.\n// The fingerprint method lists are defined below.\nexport function ie11fingerprint(methods) {\n var length = getLength(methods);\n return function(obj) {\n if (obj == null) return false;\n // `Map`, `WeakMap` and `Set` have no enumerable keys.\n var keys = allKeys(obj);\n if (getLength(keys)) return false;\n for (var i = 0; i < length; i++) {\n if (!isFunction(obj[methods[i]])) return false;\n }\n // If we are testing against `WeakMap`, we need to ensure that\n // `obj` doesn't have a `forEach` method in order to distinguish\n // it from a regular `Map`.\n return methods !== weakMapMethods || !isFunction(obj[forEachName]);\n };\n}\n\n// In the interest of compact minification, we write\n// each string in the fingerprints only once.\nvar forEachName = 'forEach',\n hasName = 'has',\n commonInit = ['clear', 'delete'],\n mapTail = ['get', hasName, 'set'];\n\n// `Map`, `WeakMap` and `Set` each have slightly different\n// combinations of the above sublists.\nexport var mapMethods = commonInit.concat(forEachName, mapTail),\n weakMapMethods = commonInit.concat(mapTail),\n setMethods = ['add'].concat(commonInit, forEachName, hasName);\n","import tagTester from './_tagTester.js';\nimport { isIE11 } from './_stringTagBug.js';\nimport { ie11fingerprint, mapMethods } from './_methodFingerprint.js';\n\nexport default isIE11 ? ie11fingerprint(mapMethods) : tagTester('Map');\n","import tagTester from './_tagTester.js';\nimport { isIE11 } from './_stringTagBug.js';\nimport { ie11fingerprint, weakMapMethods } from './_methodFingerprint.js';\n\nexport default isIE11 ? ie11fingerprint(weakMapMethods) : tagTester('WeakMap');\n","import tagTester from './_tagTester.js';\nimport { isIE11 } from './_stringTagBug.js';\nimport { ie11fingerprint, setMethods } from './_methodFingerprint.js';\n\nexport default isIE11 ? ie11fingerprint(setMethods) : tagTester('Set');\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('WeakSet');\n","import keys from './keys.js';\n\n// Retrieve the values of an object's properties.\nexport default function values(obj) {\n var _keys = keys(obj);\n var length = _keys.length;\n var values = Array(length);\n for (var i = 0; i < length; i++) {\n values[i] = obj[_keys[i]];\n }\n return values;\n}\n","import keys from './keys.js';\n\n// Convert an object into a list of `[key, value]` pairs.\n// The opposite of `_.object` with one argument.\nexport default function pairs(obj) {\n var _keys = keys(obj);\n var length = _keys.length;\n var pairs = Array(length);\n for (var i = 0; i < length; i++) {\n pairs[i] = [_keys[i], obj[_keys[i]]];\n }\n return pairs;\n}\n","import keys from './keys.js';\n\n// Invert the keys and values of an object. The values must be serializable.\nexport default function invert(obj) {\n var result = {};\n var _keys = keys(obj);\n for (var i = 0, length = _keys.length; i < length; i++) {\n result[obj[_keys[i]]] = _keys[i];\n }\n return result;\n}\n","import isFunction from './isFunction.js';\n\n// Return a sorted list of the function names available on the object.\nexport default function functions(obj) {\n var names = [];\n for (var key in obj) {\n if (isFunction(obj[key])) names.push(key);\n }\n return names.sort();\n}\n","// An internal function for creating assigner functions.\nexport default function createAssigner(keysFunc, defaults) {\n return function(obj) {\n var length = arguments.length;\n if (defaults) obj = Object(obj);\n if (length < 2 || obj == null) return obj;\n for (var index = 1; index < length; index++) {\n var source = arguments[index],\n keys = keysFunc(source),\n l = keys.length;\n for (var i = 0; i < l; i++) {\n var key = keys[i];\n if (!defaults || obj[key] === void 0) obj[key] = source[key];\n }\n }\n return obj;\n };\n}\n","import createAssigner from './_createAssigner.js';\nimport allKeys from './allKeys.js';\n\n// Extend a given object with all the properties in passed-in object(s).\nexport default createAssigner(allKeys);\n","import createAssigner from './_createAssigner.js';\nimport keys from './keys.js';\n\n// Assigns a given object with all the own properties in the passed-in\n// object(s).\n// (https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/assign)\nexport default createAssigner(keys);\n","import createAssigner from './_createAssigner.js';\nimport allKeys from './allKeys.js';\n\n// Fill in a given object with default properties.\nexport default createAssigner(allKeys, true);\n","import isObject from './isObject.js';\nimport { nativeCreate } from './_setup.js';\n\n// Create a naked function reference for surrogate-prototype-swapping.\nfunction ctor() {\n return function(){};\n}\n\n// An internal function for creating a new object that inherits from another.\nexport default function baseCreate(prototype) {\n if (!isObject(prototype)) return {};\n if (nativeCreate) return nativeCreate(prototype);\n var Ctor = ctor();\n Ctor.prototype = prototype;\n var result = new Ctor;\n Ctor.prototype = null;\n return result;\n}\n","import baseCreate from './_baseCreate.js';\nimport extendOwn from './extendOwn.js';\n\n// Creates an object that inherits from the given prototype object.\n// If additional properties are provided then they will be added to the\n// created object.\nexport default function create(prototype, props) {\n var result = baseCreate(prototype);\n if (props) extendOwn(result, props);\n return result;\n}\n","import isObject from './isObject.js';\nimport isArray from './isArray.js';\nimport extend from './extend.js';\n\n// Create a (shallow-cloned) duplicate of an object.\nexport default function clone(obj) {\n if (!isObject(obj)) return obj;\n return isArray(obj) ? obj.slice() : extend({}, obj);\n}\n","// Invokes `interceptor` with the `obj` and then returns `obj`.\n// The primary purpose of this method is to \"tap into\" a method chain, in\n// order to perform operations on intermediate results within the chain.\nexport default function tap(obj, interceptor) {\n interceptor(obj);\n return obj;\n}\n","import _ from './underscore.js';\nimport isArray from './isArray.js';\n\n// Normalize a (deep) property `path` to array.\n// Like `_.iteratee`, this function can be customized.\nexport default function toPath(path) {\n return isArray(path) ? path : [path];\n}\n_.toPath = toPath;\n","import _ from './underscore.js';\nimport './toPath.js';\n\n// Internal wrapper for `_.toPath` to enable minification.\n// Similar to `cb` for `_.iteratee`.\nexport default function toPath(path) {\n return _.toPath(path);\n}\n","// Internal function to obtain a nested property in `obj` along `path`.\nexport default function deepGet(obj, path) {\n var length = path.length;\n for (var i = 0; i < length; i++) {\n if (obj == null) return void 0;\n obj = obj[path[i]];\n }\n return length ? obj : void 0;\n}\n","import toPath from './_toPath.js';\nimport deepGet from './_deepGet.js';\nimport isUndefined from './isUndefined.js';\n\n// Get the value of the (deep) property on `path` from `object`.\n// If any property in `path` does not exist or if the value is\n// `undefined`, return `defaultValue` instead.\n// The `path` is normalized through `_.toPath`.\nexport default function get(object, path, defaultValue) {\n var value = deepGet(object, toPath(path));\n return isUndefined(value) ? defaultValue : value;\n}\n","import _has from './_has.js';\nimport toPath from './_toPath.js';\n\n// Shortcut function for checking if an object has a given property directly on\n// itself (in other words, not on a prototype). Unlike the internal `has`\n// function, this public version can also traverse nested properties.\nexport default function has(obj, path) {\n path = toPath(path);\n var length = path.length;\n for (var i = 0; i < length; i++) {\n var key = path[i];\n if (!_has(obj, key)) return false;\n obj = obj[key];\n }\n return !!length;\n}\n","// Keep the identity function around for default iteratees.\nexport default function identity(value) {\n return value;\n}\n","import extendOwn from './extendOwn.js';\nimport isMatch from './isMatch.js';\n\n// Returns a predicate for checking whether an object has a given set of\n// `key:value` pairs.\nexport default function matcher(attrs) {\n attrs = extendOwn({}, attrs);\n return function(obj) {\n return isMatch(obj, attrs);\n };\n}\n","import deepGet from './_deepGet.js';\nimport toPath from './_toPath.js';\n\n// Creates a function that, when passed an object, will traverse that object’s\n// properties down the given `path`, specified as an array of keys or indices.\nexport default function property(path) {\n path = toPath(path);\n return function(obj) {\n return deepGet(obj, path);\n };\n}\n","// Internal function that returns an efficient (for current engines) version\n// of the passed-in callback, to be repeatedly applied in other Underscore\n// functions.\nexport default function optimizeCb(func, context, argCount) {\n if (context === void 0) return func;\n switch (argCount == null ? 3 : argCount) {\n case 1: return function(value) {\n return func.call(context, value);\n };\n // The 2-argument case is omitted because we’re not using it.\n case 3: return function(value, index, collection) {\n return func.call(context, value, index, collection);\n };\n case 4: return function(accumulator, value, index, collection) {\n return func.call(context, accumulator, value, index, collection);\n };\n }\n return function() {\n return func.apply(context, arguments);\n };\n}\n","import identity from './identity.js';\nimport isFunction from './isFunction.js';\nimport isObject from './isObject.js';\nimport isArray from './isArray.js';\nimport matcher from './matcher.js';\nimport property from './property.js';\nimport optimizeCb from './_optimizeCb.js';\n\n// An internal function to generate callbacks that can be applied to each\n// element in a collection, returning the desired result — either `_.identity`,\n// an arbitrary callback, a property matcher, or a property accessor.\nexport default function baseIteratee(value, context, argCount) {\n if (value == null) return identity;\n if (isFunction(value)) return optimizeCb(value, context, argCount);\n if (isObject(value) && !isArray(value)) return matcher(value);\n return property(value);\n}\n","import _ from './underscore.js';\nimport baseIteratee from './_baseIteratee.js';\n\n// External wrapper for our callback generator. Users may customize\n// `_.iteratee` if they want additional predicate/iteratee shorthand styles.\n// This abstraction hides the internal-only `argCount` argument.\nexport default function iteratee(value, context) {\n return baseIteratee(value, context, Infinity);\n}\n_.iteratee = iteratee;\n","import _ from './underscore.js';\nimport baseIteratee from './_baseIteratee.js';\nimport iteratee from './iteratee.js';\n\n// The function we call internally to generate a callback. It invokes\n// `_.iteratee` if overridden, otherwise `baseIteratee`.\nexport default function cb(value, context, argCount) {\n if (_.iteratee !== iteratee) return _.iteratee(value, context);\n return baseIteratee(value, context, argCount);\n}\n","import cb from './_cb.js';\nimport keys from './keys.js';\n\n// Returns the results of applying the `iteratee` to each element of `obj`.\n// In contrast to `_.map` it returns an object.\nexport default function mapObject(obj, iteratee, context) {\n iteratee = cb(iteratee, context);\n var _keys = keys(obj),\n length = _keys.length,\n results = {};\n for (var index = 0; index < length; index++) {\n var currentKey = _keys[index];\n results[currentKey] = iteratee(obj[currentKey], currentKey, obj);\n }\n return results;\n}\n","// Predicate-generating function. Often useful outside of Underscore.\nexport default function noop(){}\n","import noop from './noop.js';\nimport get from './get.js';\n\n// Generates a function for a given object that returns a given property.\nexport default function propertyOf(obj) {\n if (obj == null) return noop;\n return function(path) {\n return get(obj, path);\n };\n}\n","import optimizeCb from './_optimizeCb.js';\n\n// Run a function **n** times.\nexport default function times(n, iteratee, context) {\n var accum = Array(Math.max(0, n));\n iteratee = optimizeCb(iteratee, context, 1);\n for (var i = 0; i < n; i++) accum[i] = iteratee(i);\n return accum;\n}\n","// Return a random integer between `min` and `max` (inclusive).\nexport default function random(min, max) {\n if (max == null) {\n max = min;\n min = 0;\n }\n return min + Math.floor(Math.random() * (max - min + 1));\n}\n","// A (possibly faster) way to get the current timestamp as an integer.\nexport default Date.now || function() {\n return new Date().getTime();\n};\n","import keys from './keys.js';\n\n// Internal helper to generate functions for escaping and unescaping strings\n// to/from HTML interpolation.\nexport default function createEscaper(map) {\n var escaper = function(match) {\n return map[match];\n };\n // Regexes for identifying a key that needs to be escaped.\n var source = '(?:' + keys(map).join('|') + ')';\n var testRegexp = RegExp(source);\n var replaceRegexp = RegExp(source, 'g');\n return function(string) {\n string = string == null ? '' : '' + string;\n return testRegexp.test(string) ? string.replace(replaceRegexp, escaper) : string;\n };\n}\n","// Internal list of HTML entities for escaping.\nexport default {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n \"'\": ''',\n '`': '`'\n};\n","import createEscaper from './_createEscaper.js';\nimport escapeMap from './_escapeMap.js';\n\n// Function for escaping strings to HTML interpolation.\nexport default createEscaper(escapeMap);\n","import createEscaper from './_createEscaper.js';\nimport unescapeMap from './_unescapeMap.js';\n\n// Function for unescaping strings from HTML interpolation.\nexport default createEscaper(unescapeMap);\n","import invert from './invert.js';\nimport escapeMap from './_escapeMap.js';\n\n// Internal list of HTML entities for unescaping.\nexport default invert(escapeMap);\n","import _ from './underscore.js';\n\n// By default, Underscore uses ERB-style template delimiters. Change the\n// following template settings to use alternative delimiters.\nexport default _.templateSettings = {\n evaluate: /<%([\\s\\S]+?)%>/g,\n interpolate: /<%=([\\s\\S]+?)%>/g,\n escape: /<%-([\\s\\S]+?)%>/g\n};\n","import defaults from './defaults.js';\nimport _ from './underscore.js';\nimport './templateSettings.js';\n\n// When customizing `_.templateSettings`, if you don't want to define an\n// interpolation, evaluation or escaping regex, we need one that is\n// guaranteed not to match.\nvar noMatch = /(.)^/;\n\n// Certain characters need to be escaped so that they can be put into a\n// string literal.\nvar escapes = {\n \"'\": \"'\",\n '\\\\': '\\\\',\n '\\r': 'r',\n '\\n': 'n',\n '\\u2028': 'u2028',\n '\\u2029': 'u2029'\n};\n\nvar escapeRegExp = /\\\\|'|\\r|\\n|\\u2028|\\u2029/g;\n\nfunction escapeChar(match) {\n return '\\\\' + escapes[match];\n}\n\n// In order to prevent third-party code injection through\n// `_.templateSettings.variable`, we test it against the following regular\n// expression. It is intentionally a bit more liberal than just matching valid\n// identifiers, but still prevents possible loopholes through defaults or\n// destructuring assignment.\nvar bareIdentifier = /^\\s*(\\w|\\$)+\\s*$/;\n\n// JavaScript micro-templating, similar to John Resig's implementation.\n// Underscore templating handles arbitrary delimiters, preserves whitespace,\n// and correctly escapes quotes within interpolated code.\n// NB: `oldSettings` only exists for backwards compatibility.\nexport default function template(text, settings, oldSettings) {\n if (!settings && oldSettings) settings = oldSettings;\n settings = defaults({}, settings, _.templateSettings);\n\n // Combine delimiters into one regular expression via alternation.\n var matcher = RegExp([\n (settings.escape || noMatch).source,\n (settings.interpolate || noMatch).source,\n (settings.evaluate || noMatch).source\n ].join('|') + '|$', 'g');\n\n // Compile the template source, escaping string literals appropriately.\n var index = 0;\n var source = \"__p+='\";\n text.replace(matcher, function(match, escape, interpolate, evaluate, offset) {\n source += text.slice(index, offset).replace(escapeRegExp, escapeChar);\n index = offset + match.length;\n\n if (escape) {\n source += \"'+\\n((__t=(\" + escape + \"))==null?'':_.escape(__t))+\\n'\";\n } else if (interpolate) {\n source += \"'+\\n((__t=(\" + interpolate + \"))==null?'':__t)+\\n'\";\n } else if (evaluate) {\n source += \"';\\n\" + evaluate + \"\\n__p+='\";\n }\n\n // Adobe VMs need the match returned to produce the correct offset.\n return match;\n });\n source += \"';\\n\";\n\n var argument = settings.variable;\n if (argument) {\n // Insure against third-party code injection. (CVE-2021-23358)\n if (!bareIdentifier.test(argument)) throw new Error(\n 'variable is not a bare identifier: ' + argument\n );\n } else {\n // If a variable is not specified, place data values in local scope.\n source = 'with(obj||{}){\\n' + source + '}\\n';\n argument = 'obj';\n }\n\n source = \"var __t,__p='',__j=Array.prototype.join,\" +\n \"print=function(){__p+=__j.call(arguments,'');};\\n\" +\n source + 'return __p;\\n';\n\n var render;\n try {\n render = new Function(argument, '_', source);\n } catch (e) {\n e.source = source;\n throw e;\n }\n\n var template = function(data) {\n return render.call(this, data, _);\n };\n\n // Provide the compiled source as a convenience for precompilation.\n template.source = 'function(' + argument + '){\\n' + source + '}';\n\n return template;\n}\n","import isFunction from './isFunction.js';\nimport toPath from './_toPath.js';\n\n// Traverses the children of `obj` along `path`. If a child is a function, it\n// is invoked with its parent as context. Returns the value of the final\n// child, or `fallback` if any child is undefined.\nexport default function result(obj, path, fallback) {\n path = toPath(path);\n var length = path.length;\n if (!length) {\n return isFunction(fallback) ? fallback.call(obj) : fallback;\n }\n for (var i = 0; i < length; i++) {\n var prop = obj == null ? void 0 : obj[path[i]];\n if (prop === void 0) {\n prop = fallback;\n i = length; // Ensure we don't continue iterating.\n }\n obj = isFunction(prop) ? prop.call(obj) : prop;\n }\n return obj;\n}\n","// Generate a unique integer id (unique within the entire client session).\n// Useful for temporary DOM ids.\nvar idCounter = 0;\nexport default function uniqueId(prefix) {\n var id = ++idCounter + '';\n return prefix ? prefix + id : id;\n}\n","import _ from './underscore.js';\n\n// Start chaining a wrapped Underscore object.\nexport default function chain(obj) {\n var instance = _(obj);\n instance._chain = true;\n return instance;\n}\n","import baseCreate from './_baseCreate.js';\nimport isObject from './isObject.js';\n\n// Internal function to execute `sourceFunc` bound to `context` with optional\n// `args`. Determines whether to execute a function as a constructor or as a\n// normal function.\nexport default function executeBound(sourceFunc, boundFunc, context, callingContext, args) {\n if (!(callingContext instanceof boundFunc)) return sourceFunc.apply(context, args);\n var self = baseCreate(sourceFunc.prototype);\n var result = sourceFunc.apply(self, args);\n if (isObject(result)) return result;\n return self;\n}\n","import restArguments from './restArguments.js';\nimport executeBound from './_executeBound.js';\nimport _ from './underscore.js';\n\n// Partially apply a function by creating a version that has had some of its\n// arguments pre-filled, without changing its dynamic `this` context. `_` acts\n// as a placeholder by default, allowing any combination of arguments to be\n// pre-filled. Set `_.partial.placeholder` for a custom placeholder argument.\nvar partial = restArguments(function(func, boundArgs) {\n var placeholder = partial.placeholder;\n var bound = function() {\n var position = 0, length = boundArgs.length;\n var args = Array(length);\n for (var i = 0; i < length; i++) {\n args[i] = boundArgs[i] === placeholder ? arguments[position++] : boundArgs[i];\n }\n while (position < arguments.length) args.push(arguments[position++]);\n return executeBound(func, bound, this, this, args);\n };\n return bound;\n});\n\npartial.placeholder = _;\nexport default partial;\n","import restArguments from './restArguments.js';\nimport isFunction from './isFunction.js';\nimport executeBound from './_executeBound.js';\n\n// Create a function bound to a given object (assigning `this`, and arguments,\n// optionally).\nexport default restArguments(function(func, context, args) {\n if (!isFunction(func)) throw new TypeError('Bind must be called on a function');\n var bound = restArguments(function(callArgs) {\n return executeBound(func, bound, context, this, args.concat(callArgs));\n });\n return bound;\n});\n","import createSizePropertyCheck from './_createSizePropertyCheck.js';\nimport getLength from './_getLength.js';\n\n// Internal helper for collection methods to determine whether a collection\n// should be iterated as an array or as an object.\n// Related: https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength\n// Avoids a very nasty iOS 8 JIT bug on ARM-64. #2094\nexport default createSizePropertyCheck(getLength);\n","import getLength from './_getLength.js';\nimport isArrayLike from './_isArrayLike.js';\nimport isArray from './isArray.js';\nimport isArguments from './isArguments.js';\n\n// Internal implementation of a recursive `flatten` function.\nexport default function flatten(input, depth, strict, output) {\n output = output || [];\n if (!depth && depth !== 0) {\n depth = Infinity;\n } else if (depth <= 0) {\n return output.concat(input);\n }\n var idx = output.length;\n for (var i = 0, length = getLength(input); i < length; i++) {\n var value = input[i];\n if (isArrayLike(value) && (isArray(value) || isArguments(value))) {\n // Flatten current level of array or arguments object.\n if (depth > 1) {\n flatten(value, depth - 1, strict, output);\n idx = output.length;\n } else {\n var j = 0, len = value.length;\n while (j < len) output[idx++] = value[j++];\n }\n } else if (!strict) {\n output[idx++] = value;\n }\n }\n return output;\n}\n","import restArguments from './restArguments.js';\nimport flatten from './_flatten.js';\nimport bind from './bind.js';\n\n// Bind a number of an object's methods to that object. Remaining arguments\n// are the method names to be bound. Useful for ensuring that all callbacks\n// defined on an object belong to it.\nexport default restArguments(function(obj, keys) {\n keys = flatten(keys, false, false);\n var index = keys.length;\n if (index < 1) throw new Error('bindAll must be passed function names');\n while (index--) {\n var key = keys[index];\n obj[key] = bind(obj[key], obj);\n }\n return obj;\n});\n","import has from './_has.js';\n\n// Memoize an expensive function by storing its results.\nexport default function memoize(func, hasher) {\n var memoize = function(key) {\n var cache = memoize.cache;\n var address = '' + (hasher ? hasher.apply(this, arguments) : key);\n if (!has(cache, address)) cache[address] = func.apply(this, arguments);\n return cache[address];\n };\n memoize.cache = {};\n return memoize;\n}\n","import restArguments from './restArguments.js';\n\n// Delays a function for the given number of milliseconds, and then calls\n// it with the arguments supplied.\nexport default restArguments(function(func, wait, args) {\n return setTimeout(function() {\n return func.apply(null, args);\n }, wait);\n});\n","import partial from './partial.js';\nimport delay from './delay.js';\nimport _ from './underscore.js';\n\n// Defers a function, scheduling it to run after the current call stack has\n// cleared.\nexport default partial(delay, _, 1);\n","import now from './now.js';\n\n// Returns a function, that, when invoked, will only be triggered at most once\n// during a given window of time. Normally, the throttled function will run\n// as much as it can, without ever going more than once per `wait` duration;\n// but if you'd like to disable the execution on the leading edge, pass\n// `{leading: false}`. To disable execution on the trailing edge, ditto.\nexport default function throttle(func, wait, options) {\n var timeout, context, args, result;\n var previous = 0;\n if (!options) options = {};\n\n var later = function() {\n previous = options.leading === false ? 0 : now();\n timeout = null;\n result = func.apply(context, args);\n if (!timeout) context = args = null;\n };\n\n var throttled = function() {\n var _now = now();\n if (!previous && options.leading === false) previous = _now;\n var remaining = wait - (_now - previous);\n context = this;\n args = arguments;\n if (remaining <= 0 || remaining > wait) {\n if (timeout) {\n clearTimeout(timeout);\n timeout = null;\n }\n previous = _now;\n result = func.apply(context, args);\n if (!timeout) context = args = null;\n } else if (!timeout && options.trailing !== false) {\n timeout = setTimeout(later, remaining);\n }\n return result;\n };\n\n throttled.cancel = function() {\n clearTimeout(timeout);\n previous = 0;\n timeout = context = args = null;\n };\n\n return throttled;\n}\n","import restArguments from './restArguments.js';\nimport now from './now.js';\n\n// When a sequence of calls of the returned function ends, the argument\n// function is triggered. The end of a sequence is defined by the `wait`\n// parameter. If `immediate` is passed, the argument function will be\n// triggered at the beginning of the sequence instead of at the end.\nexport default function debounce(func, wait, immediate) {\n var timeout, previous, args, result, context;\n\n var later = function() {\n var passed = now() - previous;\n if (wait > passed) {\n timeout = setTimeout(later, wait - passed);\n } else {\n timeout = null;\n if (!immediate) result = func.apply(context, args);\n // This check is needed because `func` can recursively invoke `debounced`.\n if (!timeout) args = context = null;\n }\n };\n\n var debounced = restArguments(function(_args) {\n context = this;\n args = _args;\n previous = now();\n if (!timeout) {\n timeout = setTimeout(later, wait);\n if (immediate) result = func.apply(context, args);\n }\n return result;\n });\n\n debounced.cancel = function() {\n clearTimeout(timeout);\n timeout = args = context = null;\n };\n\n return debounced;\n}\n","import partial from './partial.js';\n\n// Returns the first function passed as an argument to the second,\n// allowing you to adjust arguments, run code before and after, and\n// conditionally execute the original function.\nexport default function wrap(func, wrapper) {\n return partial(wrapper, func);\n}\n","// Returns a negated version of the passed-in predicate.\nexport default function negate(predicate) {\n return function() {\n return !predicate.apply(this, arguments);\n };\n}\n","// Returns a function that is the composition of a list of functions, each\n// consuming the return value of the function that follows.\nexport default function compose() {\n var args = arguments;\n var start = args.length - 1;\n return function() {\n var i = start;\n var result = args[start].apply(this, arguments);\n while (i--) result = args[i].call(this, result);\n return result;\n };\n}\n","// Returns a function that will only be executed on and after the Nth call.\nexport default function after(times, func) {\n return function() {\n if (--times < 1) {\n return func.apply(this, arguments);\n }\n };\n}\n","// Returns a function that will only be executed up to (but not including) the\n// Nth call.\nexport default function before(times, func) {\n var memo;\n return function() {\n if (--times > 0) {\n memo = func.apply(this, arguments);\n }\n if (times <= 1) func = null;\n return memo;\n };\n}\n","import partial from './partial.js';\nimport before from './before.js';\n\n// Returns a function that will be executed at most one time, no matter how\n// often you call it. Useful for lazy initialization.\nexport default partial(before, 2);\n","import cb from './_cb.js';\nimport keys from './keys.js';\n\n// Returns the first key on an object that passes a truth test.\nexport default function findKey(obj, predicate, context) {\n predicate = cb(predicate, context);\n var _keys = keys(obj), key;\n for (var i = 0, length = _keys.length; i < length; i++) {\n key = _keys[i];\n if (predicate(obj[key], key, obj)) return key;\n }\n}\n","import cb from './_cb.js';\nimport getLength from './_getLength.js';\n\n// Internal function to generate `_.findIndex` and `_.findLastIndex`.\nexport default function createPredicateIndexFinder(dir) {\n return function(array, predicate, context) {\n predicate = cb(predicate, context);\n var length = getLength(array);\n var index = dir > 0 ? 0 : length - 1;\n for (; index >= 0 && index < length; index += dir) {\n if (predicate(array[index], index, array)) return index;\n }\n return -1;\n };\n}\n","import createPredicateIndexFinder from './_createPredicateIndexFinder.js';\n\n// Returns the first index on an array-like that passes a truth test.\nexport default createPredicateIndexFinder(1);\n","import createPredicateIndexFinder from './_createPredicateIndexFinder.js';\n\n// Returns the last index on an array-like that passes a truth test.\nexport default createPredicateIndexFinder(-1);\n","import cb from './_cb.js';\nimport getLength from './_getLength.js';\n\n// Use a comparator function to figure out the smallest index at which\n// an object should be inserted so as to maintain order. Uses binary search.\nexport default function sortedIndex(array, obj, iteratee, context) {\n iteratee = cb(iteratee, context, 1);\n var value = iteratee(obj);\n var low = 0, high = getLength(array);\n while (low < high) {\n var mid = Math.floor((low + high) / 2);\n if (iteratee(array[mid]) < value) low = mid + 1; else high = mid;\n }\n return low;\n}\n","import getLength from './_getLength.js';\nimport { slice } from './_setup.js';\nimport isNaN from './isNaN.js';\n\n// Internal function to generate the `_.indexOf` and `_.lastIndexOf` functions.\nexport default function createIndexFinder(dir, predicateFind, sortedIndex) {\n return function(array, item, idx) {\n var i = 0, length = getLength(array);\n if (typeof idx == 'number') {\n if (dir > 0) {\n i = idx >= 0 ? idx : Math.max(idx + length, i);\n } else {\n length = idx >= 0 ? Math.min(idx + 1, length) : idx + length + 1;\n }\n } else if (sortedIndex && idx && length) {\n idx = sortedIndex(array, item);\n return array[idx] === item ? idx : -1;\n }\n if (item !== item) {\n idx = predicateFind(slice.call(array, i, length), isNaN);\n return idx >= 0 ? idx + i : -1;\n }\n for (idx = dir > 0 ? i : length - 1; idx >= 0 && idx < length; idx += dir) {\n if (array[idx] === item) return idx;\n }\n return -1;\n };\n}\n","import sortedIndex from './sortedIndex.js';\nimport findIndex from './findIndex.js';\nimport createIndexFinder from './_createIndexFinder.js';\n\n// Return the position of the first occurrence of an item in an array,\n// or -1 if the item is not included in the array.\n// If the array is large and already in sort order, pass `true`\n// for **isSorted** to use binary search.\nexport default createIndexFinder(1, findIndex, sortedIndex);\n","import findLastIndex from './findLastIndex.js';\nimport createIndexFinder from './_createIndexFinder.js';\n\n// Return the position of the last occurrence of an item in an array,\n// or -1 if the item is not included in the array.\nexport default createIndexFinder(-1, findLastIndex);\n","import isArrayLike from './_isArrayLike.js';\nimport findIndex from './findIndex.js';\nimport findKey from './findKey.js';\n\n// Return the first value which passes a truth test.\nexport default function find(obj, predicate, context) {\n var keyFinder = isArrayLike(obj) ? findIndex : findKey;\n var key = keyFinder(obj, predicate, context);\n if (key !== void 0 && key !== -1) return obj[key];\n}\n","import find from './find.js';\nimport matcher from './matcher.js';\n\n// Convenience version of a common use case of `_.find`: getting the first\n// object containing specific `key:value` pairs.\nexport default function findWhere(obj, attrs) {\n return find(obj, matcher(attrs));\n}\n","import optimizeCb from './_optimizeCb.js';\nimport isArrayLike from './_isArrayLike.js';\nimport keys from './keys.js';\n\n// The cornerstone for collection functions, an `each`\n// implementation, aka `forEach`.\n// Handles raw objects in addition to array-likes. Treats all\n// sparse array-likes as if they were dense.\nexport default function each(obj, iteratee, context) {\n iteratee = optimizeCb(iteratee, context);\n var i, length;\n if (isArrayLike(obj)) {\n for (i = 0, length = obj.length; i < length; i++) {\n iteratee(obj[i], i, obj);\n }\n } else {\n var _keys = keys(obj);\n for (i = 0, length = _keys.length; i < length; i++) {\n iteratee(obj[_keys[i]], _keys[i], obj);\n }\n }\n return obj;\n}\n","import cb from './_cb.js';\nimport isArrayLike from './_isArrayLike.js';\nimport keys from './keys.js';\n\n// Return the results of applying the iteratee to each element.\nexport default function map(obj, iteratee, context) {\n iteratee = cb(iteratee, context);\n var _keys = !isArrayLike(obj) && keys(obj),\n length = (_keys || obj).length,\n results = Array(length);\n for (var index = 0; index < length; index++) {\n var currentKey = _keys ? _keys[index] : index;\n results[index] = iteratee(obj[currentKey], currentKey, obj);\n }\n return results;\n}\n","import isArrayLike from './_isArrayLike.js';\nimport keys from './keys.js';\nimport optimizeCb from './_optimizeCb.js';\n\n// Internal helper to create a reducing function, iterating left or right.\nexport default function createReduce(dir) {\n // Wrap code that reassigns argument variables in a separate function than\n // the one that accesses `arguments.length` to avoid a perf hit. (#1991)\n var reducer = function(obj, iteratee, memo, initial) {\n var _keys = !isArrayLike(obj) && keys(obj),\n length = (_keys || obj).length,\n index = dir > 0 ? 0 : length - 1;\n if (!initial) {\n memo = obj[_keys ? _keys[index] : index];\n index += dir;\n }\n for (; index >= 0 && index < length; index += dir) {\n var currentKey = _keys ? _keys[index] : index;\n memo = iteratee(memo, obj[currentKey], currentKey, obj);\n }\n return memo;\n };\n\n return function(obj, iteratee, memo, context) {\n var initial = arguments.length >= 3;\n return reducer(obj, optimizeCb(iteratee, context, 4), memo, initial);\n };\n}\n","import createReduce from './_createReduce.js';\n\n// **Reduce** builds up a single result from a list of values, aka `inject`,\n// or `foldl`.\nexport default createReduce(1);\n","import createReduce from './_createReduce.js';\n\n// The right-associative version of reduce, also known as `foldr`.\nexport default createReduce(-1);\n","import cb from './_cb.js';\nimport each from './each.js';\n\n// Return all the elements that pass a truth test.\nexport default function filter(obj, predicate, context) {\n var results = [];\n predicate = cb(predicate, context);\n each(obj, function(value, index, list) {\n if (predicate(value, index, list)) results.push(value);\n });\n return results;\n}\n","import filter from './filter.js';\nimport negate from './negate.js';\nimport cb from './_cb.js';\n\n// Return all the elements for which a truth test fails.\nexport default function reject(obj, predicate, context) {\n return filter(obj, negate(cb(predicate)), context);\n}\n","import cb from './_cb.js';\nimport isArrayLike from './_isArrayLike.js';\nimport keys from './keys.js';\n\n// Determine whether all of the elements pass a truth test.\nexport default function every(obj, predicate, context) {\n predicate = cb(predicate, context);\n var _keys = !isArrayLike(obj) && keys(obj),\n length = (_keys || obj).length;\n for (var index = 0; index < length; index++) {\n var currentKey = _keys ? _keys[index] : index;\n if (!predicate(obj[currentKey], currentKey, obj)) return false;\n }\n return true;\n}\n","import cb from './_cb.js';\nimport isArrayLike from './_isArrayLike.js';\nimport keys from './keys.js';\n\n// Determine if at least one element in the object passes a truth test.\nexport default function some(obj, predicate, context) {\n predicate = cb(predicate, context);\n var _keys = !isArrayLike(obj) && keys(obj),\n length = (_keys || obj).length;\n for (var index = 0; index < length; index++) {\n var currentKey = _keys ? _keys[index] : index;\n if (predicate(obj[currentKey], currentKey, obj)) return true;\n }\n return false;\n}\n","import isArrayLike from './_isArrayLike.js';\nimport values from './values.js';\nimport indexOf from './indexOf.js';\n\n// Determine if the array or object contains a given item (using `===`).\nexport default function contains(obj, item, fromIndex, guard) {\n if (!isArrayLike(obj)) obj = values(obj);\n if (typeof fromIndex != 'number' || guard) fromIndex = 0;\n return indexOf(obj, item, fromIndex) >= 0;\n}\n","import restArguments from './restArguments.js';\nimport isFunction from './isFunction.js';\nimport map from './map.js';\nimport deepGet from './_deepGet.js';\nimport toPath from './_toPath.js';\n\n// Invoke a method (with arguments) on every item in a collection.\nexport default restArguments(function(obj, path, args) {\n var contextPath, func;\n if (isFunction(path)) {\n func = path;\n } else {\n path = toPath(path);\n contextPath = path.slice(0, -1);\n path = path[path.length - 1];\n }\n return map(obj, function(context) {\n var method = func;\n if (!method) {\n if (contextPath && contextPath.length) {\n context = deepGet(context, contextPath);\n }\n if (context == null) return void 0;\n method = context[path];\n }\n return method == null ? method : method.apply(context, args);\n });\n});\n","import map from './map.js';\nimport property from './property.js';\n\n// Convenience version of a common use case of `_.map`: fetching a property.\nexport default function pluck(obj, key) {\n return map(obj, property(key));\n}\n","import filter from './filter.js';\nimport matcher from './matcher.js';\n\n// Convenience version of a common use case of `_.filter`: selecting only\n// objects containing specific `key:value` pairs.\nexport default function where(obj, attrs) {\n return filter(obj, matcher(attrs));\n}\n","import isArrayLike from './_isArrayLike.js';\nimport values from './values.js';\nimport cb from './_cb.js';\nimport each from './each.js';\n\n// Return the maximum element (or element-based computation).\nexport default function max(obj, iteratee, context) {\n var result = -Infinity, lastComputed = -Infinity,\n value, computed;\n if (iteratee == null || (typeof iteratee == 'number' && typeof obj[0] != 'object' && obj != null)) {\n obj = isArrayLike(obj) ? obj : values(obj);\n for (var i = 0, length = obj.length; i < length; i++) {\n value = obj[i];\n if (value != null && value > result) {\n result = value;\n }\n }\n } else {\n iteratee = cb(iteratee, context);\n each(obj, function(v, index, list) {\n computed = iteratee(v, index, list);\n if (computed > lastComputed || (computed === -Infinity && result === -Infinity)) {\n result = v;\n lastComputed = computed;\n }\n });\n }\n return result;\n}\n","import isArrayLike from './_isArrayLike.js';\nimport values from './values.js';\nimport cb from './_cb.js';\nimport each from './each.js';\n\n// Return the minimum element (or element-based computation).\nexport default function min(obj, iteratee, context) {\n var result = Infinity, lastComputed = Infinity,\n value, computed;\n if (iteratee == null || (typeof iteratee == 'number' && typeof obj[0] != 'object' && obj != null)) {\n obj = isArrayLike(obj) ? obj : values(obj);\n for (var i = 0, length = obj.length; i < length; i++) {\n value = obj[i];\n if (value != null && value < result) {\n result = value;\n }\n }\n } else {\n iteratee = cb(iteratee, context);\n each(obj, function(v, index, list) {\n computed = iteratee(v, index, list);\n if (computed < lastComputed || (computed === Infinity && result === Infinity)) {\n result = v;\n lastComputed = computed;\n }\n });\n }\n return result;\n}\n","import isArray from './isArray.js';\nimport { slice } from './_setup.js';\nimport isString from './isString.js';\nimport isArrayLike from './_isArrayLike.js';\nimport map from './map.js';\nimport identity from './identity.js';\nimport values from './values.js';\n\n// Safely create a real, live array from anything iterable.\nvar reStrSymbol = /[^\\ud800-\\udfff]|[\\ud800-\\udbff][\\udc00-\\udfff]|[\\ud800-\\udfff]/g;\nexport default function toArray(obj) {\n if (!obj) return [];\n if (isArray(obj)) return slice.call(obj);\n if (isString(obj)) {\n // Keep surrogate pair characters together.\n return obj.match(reStrSymbol);\n }\n if (isArrayLike(obj)) return map(obj, identity);\n return values(obj);\n}\n","import isArrayLike from './_isArrayLike.js';\nimport values from './values.js';\nimport getLength from './_getLength.js';\nimport random from './random.js';\nimport toArray from './toArray.js';\n\n// Sample **n** random values from a collection using the modern version of the\n// [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher–Yates_shuffle).\n// If **n** is not specified, returns a single random element.\n// The internal `guard` argument allows it to work with `_.map`.\nexport default function sample(obj, n, guard) {\n if (n == null || guard) {\n if (!isArrayLike(obj)) obj = values(obj);\n return obj[random(obj.length - 1)];\n }\n var sample = toArray(obj);\n var length = getLength(sample);\n n = Math.max(Math.min(n, length), 0);\n var last = length - 1;\n for (var index = 0; index < n; index++) {\n var rand = random(index, last);\n var temp = sample[index];\n sample[index] = sample[rand];\n sample[rand] = temp;\n }\n return sample.slice(0, n);\n}\n","import sample from './sample.js';\n\n// Shuffle a collection.\nexport default function shuffle(obj) {\n return sample(obj, Infinity);\n}\n","import cb from './_cb.js';\nimport pluck from './pluck.js';\nimport map from './map.js';\n\n// Sort the object's values by a criterion produced by an iteratee.\nexport default function sortBy(obj, iteratee, context) {\n var index = 0;\n iteratee = cb(iteratee, context);\n return pluck(map(obj, function(value, key, list) {\n return {\n value: value,\n index: index++,\n criteria: iteratee(value, key, list)\n };\n }).sort(function(left, right) {\n var a = left.criteria;\n var b = right.criteria;\n if (a !== b) {\n if (a > b || a === void 0) return 1;\n if (a < b || b === void 0) return -1;\n }\n return left.index - right.index;\n }), 'value');\n}\n","import cb from './_cb.js';\nimport each from './each.js';\n\n// An internal function used for aggregate \"group by\" operations.\nexport default function group(behavior, partition) {\n return function(obj, iteratee, context) {\n var result = partition ? [[], []] : {};\n iteratee = cb(iteratee, context);\n each(obj, function(value, index) {\n var key = iteratee(value, index, obj);\n behavior(result, value, key);\n });\n return result;\n };\n}\n","import group from './_group.js';\nimport has from './_has.js';\n\n// Groups the object's values by a criterion. Pass either a string attribute\n// to group by, or a function that returns the criterion.\nexport default group(function(result, value, key) {\n if (has(result, key)) result[key].push(value); else result[key] = [value];\n});\n","import group from './_group.js';\n\n// Indexes the object's values by a criterion, similar to `_.groupBy`, but for\n// when you know that your index values will be unique.\nexport default group(function(result, value, key) {\n result[key] = value;\n});\n","import group from './_group.js';\nimport has from './_has.js';\n\n// Counts instances of an object that group by a certain criterion. Pass\n// either a string attribute to count by, or a function that returns the\n// criterion.\nexport default group(function(result, value, key) {\n if (has(result, key)) result[key]++; else result[key] = 1;\n});\n","import group from './_group.js';\n\n// Split a collection into two arrays: one whose elements all pass the given\n// truth test, and one whose elements all do not pass the truth test.\nexport default group(function(result, value, pass) {\n result[pass ? 0 : 1].push(value);\n}, true);\n","import isArrayLike from './_isArrayLike.js';\nimport keys from './keys.js';\n\n// Return the number of elements in a collection.\nexport default function size(obj) {\n if (obj == null) return 0;\n return isArrayLike(obj) ? obj.length : keys(obj).length;\n}\n","// Internal `_.pick` helper function to determine whether `key` is an enumerable\n// property name of `obj`.\nexport default function keyInObj(value, key, obj) {\n return key in obj;\n}\n","import restArguments from './restArguments.js';\nimport isFunction from './isFunction.js';\nimport optimizeCb from './_optimizeCb.js';\nimport allKeys from './allKeys.js';\nimport keyInObj from './_keyInObj.js';\nimport flatten from './_flatten.js';\n\n// Return a copy of the object only containing the allowed properties.\nexport default restArguments(function(obj, keys) {\n var result = {}, iteratee = keys[0];\n if (obj == null) return result;\n if (isFunction(iteratee)) {\n if (keys.length > 1) iteratee = optimizeCb(iteratee, keys[1]);\n keys = allKeys(obj);\n } else {\n iteratee = keyInObj;\n keys = flatten(keys, false, false);\n obj = Object(obj);\n }\n for (var i = 0, length = keys.length; i < length; i++) {\n var key = keys[i];\n var value = obj[key];\n if (iteratee(value, key, obj)) result[key] = value;\n }\n return result;\n});\n","import restArguments from './restArguments.js';\nimport isFunction from './isFunction.js';\nimport negate from './negate.js';\nimport map from './map.js';\nimport flatten from './_flatten.js';\nimport contains from './contains.js';\nimport pick from './pick.js';\n\n// Return a copy of the object without the disallowed properties.\nexport default restArguments(function(obj, keys) {\n var iteratee = keys[0], context;\n if (isFunction(iteratee)) {\n iteratee = negate(iteratee);\n if (keys.length > 1) context = keys[1];\n } else {\n keys = map(flatten(keys, false, false), String);\n iteratee = function(value, key) {\n return !contains(keys, key);\n };\n }\n return pick(obj, iteratee, context);\n});\n","import { slice } from './_setup.js';\n\n// Returns everything but the last entry of the array. Especially useful on\n// the arguments object. Passing **n** will return all the values in\n// the array, excluding the last N.\nexport default function initial(array, n, guard) {\n return slice.call(array, 0, Math.max(0, array.length - (n == null || guard ? 1 : n)));\n}\n","import initial from './initial.js';\n\n// Get the first element of an array. Passing **n** will return the first N\n// values in the array. The **guard** check allows it to work with `_.map`.\nexport default function first(array, n, guard) {\n if (array == null || array.length < 1) return n == null || guard ? void 0 : [];\n if (n == null || guard) return array[0];\n return initial(array, array.length - n);\n}\n","import { slice } from './_setup.js';\n\n// Returns everything but the first entry of the `array`. Especially useful on\n// the `arguments` object. Passing an **n** will return the rest N values in the\n// `array`.\nexport default function rest(array, n, guard) {\n return slice.call(array, n == null || guard ? 1 : n);\n}\n","import rest from './rest.js';\n\n// Get the last element of an array. Passing **n** will return the last N\n// values in the array.\nexport default function last(array, n, guard) {\n if (array == null || array.length < 1) return n == null || guard ? void 0 : [];\n if (n == null || guard) return array[array.length - 1];\n return rest(array, Math.max(0, array.length - n));\n}\n","import filter from './filter.js';\n\n// Trim out all falsy values from an array.\nexport default function compact(array) {\n return filter(array, Boolean);\n}\n","import _flatten from './_flatten.js';\n\n// Flatten out an array, either recursively (by default), or up to `depth`.\n// Passing `true` or `false` as `depth` means `1` or `Infinity`, respectively.\nexport default function flatten(array, depth) {\n return _flatten(array, depth, false);\n}\n","import restArguments from './restArguments.js';\nimport flatten from './_flatten.js';\nimport filter from './filter.js';\nimport contains from './contains.js';\n\n// Take the difference between one array and a number of other arrays.\n// Only the elements present in just the first array will remain.\nexport default restArguments(function(array, rest) {\n rest = flatten(rest, true, true);\n return filter(array, function(value){\n return !contains(rest, value);\n });\n});\n","import restArguments from './restArguments.js';\nimport difference from './difference.js';\n\n// Return a version of the array that does not contain the specified value(s).\nexport default restArguments(function(array, otherArrays) {\n return difference(array, otherArrays);\n});\n","import isBoolean from './isBoolean.js';\nimport cb from './_cb.js';\nimport getLength from './_getLength.js';\nimport contains from './contains.js';\n\n// Produce a duplicate-free version of the array. If the array has already\n// been sorted, you have the option of using a faster algorithm.\n// The faster algorithm will not work with an iteratee if the iteratee\n// is not a one-to-one function, so providing an iteratee will disable\n// the faster algorithm.\nexport default function uniq(array, isSorted, iteratee, context) {\n if (!isBoolean(isSorted)) {\n context = iteratee;\n iteratee = isSorted;\n isSorted = false;\n }\n if (iteratee != null) iteratee = cb(iteratee, context);\n var result = [];\n var seen = [];\n for (var i = 0, length = getLength(array); i < length; i++) {\n var value = array[i],\n computed = iteratee ? iteratee(value, i, array) : value;\n if (isSorted && !iteratee) {\n if (!i || seen !== computed) result.push(value);\n seen = computed;\n } else if (iteratee) {\n if (!contains(seen, computed)) {\n seen.push(computed);\n result.push(value);\n }\n } else if (!contains(result, value)) {\n result.push(value);\n }\n }\n return result;\n}\n","import restArguments from './restArguments.js';\nimport uniq from './uniq.js';\nimport flatten from './_flatten.js';\n\n// Produce an array that contains the union: each distinct element from all of\n// the passed-in arrays.\nexport default restArguments(function(arrays) {\n return uniq(flatten(arrays, true, true));\n});\n","import getLength from './_getLength.js';\nimport contains from './contains.js';\n\n// Produce an array that contains every item shared between all the\n// passed-in arrays.\nexport default function intersection(array) {\n var result = [];\n var argsLength = arguments.length;\n for (var i = 0, length = getLength(array); i < length; i++) {\n var item = array[i];\n if (contains(result, item)) continue;\n var j;\n for (j = 1; j < argsLength; j++) {\n if (!contains(arguments[j], item)) break;\n }\n if (j === argsLength) result.push(item);\n }\n return result;\n}\n","import max from './max.js';\nimport getLength from './_getLength.js';\nimport pluck from './pluck.js';\n\n// Complement of zip. Unzip accepts an array of arrays and groups\n// each array's elements on shared indices.\nexport default function unzip(array) {\n var length = (array && max(array, getLength).length) || 0;\n var result = Array(length);\n\n for (var index = 0; index < length; index++) {\n result[index] = pluck(array, index);\n }\n return result;\n}\n","import restArguments from './restArguments.js';\nimport unzip from './unzip.js';\n\n// Zip together multiple lists into a single array -- elements that share\n// an index go together.\nexport default restArguments(unzip);\n","import getLength from './_getLength.js';\n\n// Converts lists into objects. Pass either a single array of `[key, value]`\n// pairs, or two parallel arrays of the same length -- one of keys, and one of\n// the corresponding values. Passing by pairs is the reverse of `_.pairs`.\nexport default function object(list, values) {\n var result = {};\n for (var i = 0, length = getLength(list); i < length; i++) {\n if (values) {\n result[list[i]] = values[i];\n } else {\n result[list[i][0]] = list[i][1];\n }\n }\n return result;\n}\n","// Generate an integer Array containing an arithmetic progression. A port of\n// the native Python `range()` function. See\n// [the Python documentation](https://docs.python.org/library/functions.html#range).\nexport default function range(start, stop, step) {\n if (stop == null) {\n stop = start || 0;\n start = 0;\n }\n if (!step) {\n step = stop < start ? -1 : 1;\n }\n\n var length = Math.max(Math.ceil((stop - start) / step), 0);\n var range = Array(length);\n\n for (var idx = 0; idx < length; idx++, start += step) {\n range[idx] = start;\n }\n\n return range;\n}\n","import { slice } from './_setup.js';\n\n// Chunk a single array into multiple arrays, each containing `count` or fewer\n// items.\nexport default function chunk(array, count) {\n if (count == null || count < 1) return [];\n var result = [];\n var i = 0, length = array.length;\n while (i < length) {\n result.push(slice.call(array, i, i += count));\n }\n return result;\n}\n","import _ from './underscore.js';\n\n// Helper function to continue chaining intermediate results.\nexport default function chainResult(instance, obj) {\n return instance._chain ? _(obj).chain() : obj;\n}\n","import _ from './underscore.js';\nimport each from './each.js';\nimport functions from './functions.js';\nimport { push } from './_setup.js';\nimport chainResult from './_chainResult.js';\n\n// Add your own custom functions to the Underscore object.\nexport default function mixin(obj) {\n each(functions(obj), function(name) {\n var func = _[name] = obj[name];\n _.prototype[name] = function() {\n var args = [this._wrapped];\n push.apply(args, arguments);\n return chainResult(this, func.apply(_, args));\n };\n });\n return _;\n}\n","import _ from './underscore.js';\nimport each from './each.js';\nimport { ArrayProto } from './_setup.js';\nimport chainResult from './_chainResult.js';\n\n// Add all mutator `Array` functions to the wrapper.\neach(['pop', 'push', 'reverse', 'shift', 'sort', 'splice', 'unshift'], function(name) {\n var method = ArrayProto[name];\n _.prototype[name] = function() {\n var obj = this._wrapped;\n if (obj != null) {\n method.apply(obj, arguments);\n if ((name === 'shift' || name === 'splice') && obj.length === 0) {\n delete obj[0];\n }\n }\n return chainResult(this, obj);\n };\n});\n\n// Add all accessor `Array` functions to the wrapper.\neach(['concat', 'join', 'slice'], function(name) {\n var method = ArrayProto[name];\n _.prototype[name] = function() {\n var obj = this._wrapped;\n if (obj != null) obj = method.apply(obj, arguments);\n return chainResult(this, obj);\n };\n});\n\nexport default _;\n","// Default Export\n// ==============\n// In this module, we mix our bundled exports into the `_` object and export\n// the result. This is analogous to setting `module.exports = _` in CommonJS.\n// Hence, this module is also the entry point of our UMD bundle and the package\n// entry point for CommonJS and AMD users. In other words, this is (the source\n// of) the module you are interfacing with when you do any of the following:\n//\n// ```js\n// // CommonJS\n// var _ = require('underscore');\n//\n// // AMD\n// define(['underscore'], function(_) {...});\n//\n// // UMD in the browser\n// // _ is available as a global variable\n// ```\nimport * as allExports from './index.js';\nimport { mixin } from './index.js';\n\n// Add all of the Underscore functions to the wrapper object.\nvar _ = mixin(allExports);\n// Legacy Node.js API.\n_._ = _;\n// Export the Underscore API.\nexport default _;\n","import {Component} from 'react';\n\nclass SearchItem extends Component{\n\tconstructor(props){\n\t\tsuper();\n\t\tthis.state = {\n\t\t\tover: props.isOver,\n\t\t};\n\t}\n\tcomponentWillReceiveProps(nextProps){\n\t\tthis.state.over = nextProps.isOver;\n\t}\n\trender(){\n\t\tconst {display_name} = this.props.author;\n\t\treturn(\n\t\t\t<div\n\t\t\t\tonMouseOver={this.onMouseOver.bind(this, true)}\n\t\t\t\tonMouseOut={this.onMouseOver.bind(this, false)}\n\t\t\t\tonClick={this.onClick.bind(this)}\n\t\t\t\tclassName={`additional-authors-search-item ${(this.state.over)? 'is-over': ''}`}\n\t\t\t>\n\t\t\t\t{display_name}\n\t\t\t</div>\n\t\t)\n\t}\n\tonMouseOver(is_over){\n\t\tthis.setState({over: is_over});\n\t}\n\tonClick(){\n\t\tthis.props.onSelect(this.props.author);\n\t}\n}\n\n/**\n * export component to public\n */\nexport default SearchItem;","import {Component} from 'react';\n\nclass NewItem extends Component{\n\tconstructor(props){\n\t\tsuper();\n\t\tthis.state = {\n\t\t\tover: props.isOver,\n\t\t};\n\t}\n\tcomponentWillReceiveProps(nextProps){\n\t\tthis.state.over = nextProps.isOver;\n\t}\n\trender(){\n\t\treturn(\n\t\t\t<div\n\t\t\t\tonMouseOver={this.onMouseOver.bind(this, true)}\n\t\t\t\tonMouseOut={this.onMouseOver.bind(this, false)}\n\t\t\t\tonClick={this.onClick.bind(this)}\n\t\t\t\tclassName={`additional-authors-new-item ${(this.state.over)? 'is-over': ''}`}\n\t\t\t>\n\t\t\t\tNew user \"{this.props.name}\"\n\t\t\t</div>\n\t\t)\n\t}\n\tonMouseOver(is_over){\n\t\tthis.setState({over: is_over});\n\t}\n\tonClick(){\n\t\tthis.props.onSelect(this.props.name);\n\t}\n}\n\n/**\n * export component to public\n */\nexport default NewItem;","import {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport SearchItem from './search-item.jsx';\nimport NewItem from './new-item.jsx';\n\nclass Search extends Component {\n\n\t/**\n\t * ------------------------------------------------\n\t * lifecycle\n\t * ------------------------------------------------\n\t */\n\tconstructor(props) {\n\t\tsuper(props);\n\t\tthis.state = {\n\t\t\tquery: \"\",\n\t\t\tover_index: 0,\n\t\t\tsearch_result: [],\n\t\t\tfocus: false,\n\t\t}\n\t}\n\n\t/**\n\t * ------------------------------------------------\n\t * rendering\n\t * ------------------------------------------------\n\t */\n\trender() {\n\t\tconst {query} = this.state;\n\t\treturn (\n\t\t\t<div\n\t\t\t\tclassName=\"additional-authors-search\"\n\t\t\t onKeyUp={this.onKeyUp.bind(this)}\n\t\t\t>\n\t\t\t\t<label>\n\t\t\t\t\t{this.props.languages.label}\n\t\t\t\t\t<br />\n\t\t\t\t\t<input\n\t\t\t\t\t\tclassName=\"additional-authors-search__input\"\n\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\tvalue={query}\n\t\t\t\t\t\tonKeyDown={this.onKeyDown.bind(this)}\n\t\t\t\t\t onChange={this.onChange.bind(this)}\n\t\t\t\t\t onFocus={this.onFocusSearch.bind(this, true)}\n\t\t\t\t\t onBlur={this.onFocusSearch.bind(this, false)}\n\t\t\t\t\t/>\n\t\t\t\t</label>\n\t\t\t\t{this.renderList()}\n\t\t\t</div>\n\t\t)\n\t}\n\trenderList(){\n\t\tconst {selected} = this.props;\n\t\tconst {over_index, search_result, focus, query} = this.state;\n\t\tif(focus){\n\t\t\tconst newItem = (query !== \"\") ? (<NewItem\n\t\t\tname={query}\n\t\t\tisOver={(over_index === search_result.length)}\n\t\t\tonSelect={this.onNewItem.bind(this)}\n\t\t\t/>): null;\n\t\t\treturn (\n\t\t\t\t<div\n\t\t\t\t\tclassName=\"additional-authors-search-list\"\n\t\t\t\t>\n\t\t\t\t\t{search_result.map((item, index)=>{\n\t\t\t\t\t\treturn <SearchItem\n\t\t\t\t\t\t\tkey={item.ID}\n\t\t\t\t\t\t\tauthor={item}\n\t\t\t\t\t\t\tonSelect={this.onSelect.bind(this, item)}\n\t\t\t\t\t\t\tisOver={(over_index === index)}\n\t\t\t\t\t\t/>\n\t\t\t\t\t})}\n\t\t\t\t\t{newItem}\n\t\t\t\t</div>\n\t\t\t)\n\t\t}\n\t\treturn null;\n\t}\n\n\t/**\n\t * ------------------------------------------------\n\t * events\n\t * ------------------------------------------------\n\t */\n\tonChange(e){\n\n\t\tif(e) this.state.query = e.target.value;\n\n\t\tconst {users, selected} = this.props;\n\t\tconst {query} = this.state;\n\n\t\tlet search_result = [];\n\n\t\tif(query !== ''){\n\t\t\tfor(let user of users){\n\t\t\t\tif(user.display_name.toLowerCase().indexOf(query.toLowerCase()) > -1){\n\t\t\t\t\tif(selected.indexOf(user.ID+\"\") >= 0 || selected.indexOf(parseInt(user.ID)) >= 0) continue;\n\t\t\t\t\tsearch_result.unshift(user);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tsearch_result = [];\n\t\t}\n\n\t\tthis.setState({over_index: 0, search_result: search_result});\n\t}\n\n\tonFocusSearch(focus){\n\t\tclearTimeout(this.closeTimeout);\n\t\tif(!focus){\n\t\t\t// just enough time to check if list item was clicked\n\t\t\tthis.closeTimeout = setTimeout(()=>{\n\t\t\t\tthis.setState({focus: focus});\n\t\t\t},600);\n\t\t\treturn;\n\t\t}\n\t\tthis.setState({focus: focus});\n\t}\n\tonSelect(user){\n\t\tthis.props.onSelect(user);\n\t\tthis.setState({focus: false});\n\t\tthis.onChange();\n\t}\n\tonNewItem(name){\n\t\tif(name === \"\") return;\n\t\tthis.props.onSelect({\n\t\t\tID: 0,\n\t\t\tdisplay_name: name,\n\t\t\tuser_nicename: \"-\",\n\t\t});\n\t\tthis.setState({query:\"\", search_result:[] });\n\t}\n\tonKeyDown(e){\n\t\tconst ENTER = 13;\n\t\tif(ENTER === e.keyCode && this.state.focus){\n\t\t\te.preventDefault();\n\t\t\tif(typeof this.state.search_result[this.state.over_index] != typeof undefined ){\n\t\t\t\tthis.onSelect(this.state.search_result[this.state.over_index]);\n\t\t\t}\n\t\t} else {\n\t\t\tthis.setState({focus: true});\n\t\t}\n\t}\n\tonKeyUp(e){\n\n\t\tif(!this.state.focus) return;\n\n\t\tconst ESC = 27;\n\t\tconst UP = 38;\n\t\tconst DOWN = 40;\n\n\t\tif(ESC === e.keyCode){\n\t\t\tthis.setState({search_result: []});\n\t\t\treturn;\n\t\t}\n\t\telse if(UP === e.keyCode){\n\t\t\te.preventDefault();\n\t\t\tthis.state.over_index--;\n\t\t} else if(DOWN === e.keyCode){\n\t\t\te.preventDefault();\n\t\t\tthis.state.over_index++;\n\t\t}\n\t\tif(this.state.over_index > this.state.search_result.length){\n\t\t\tthis.state.over_index = this.state.search_result.length;\n\t\t} else if(this.state.over_index < 0) {\n\t\t\tthis.state.over_index = 0;\n\t\t}\n\n\t\tthis.setState({over_index: this.state.over_index });\n\t}\n\n\t/**\n\t * ------------------------------------------------\n\t * other functions\n\t * ------------------------------------------------\n\t */\n}\n\n/**\n * property defaults\n */\nSearch.defaultProps = {\n\tusers: [],\n};\n\n/**\n * define property types\n */\nSearch.propTypes = {\n\tusers: PropTypes.array.isRequired,\n\tselected: PropTypes.array.isRequired,\n\tlanguages: PropTypes.object.isRequired,\n\tonSelect: PropTypes.func.isRequired,\n};\n\n/**\n * export component to public\n */\nexport default Search;\n","import PropTypes from 'prop-types';\n\nconst Delete = ({onClick}) => {\n\treturn (\n\t\t<span\n\t\t\tclassName=\"author-item__delete\"\n\t\t\tonClick={onClick}\n\t\t>\n\t\t\t×\n\t\t</span>\n\t)\n}\n\nconst ProfileLink = ({author}) => {\n\tconst {ID,display_name} = author;\n\tif(ID > 0){\n\t\treturn <a href={`/wp-admin/user-edit.php?user_id=${ID}`} target=\"_blank\">{display_name}</a>\n\t}\n\treturn display_name\n}\n\nconst AuthorItem = ({author, isMainAuthor, index, onUnselect, onChangePosition})=>{\n\n\treturn (\n\t\t<div\n\t\t\tclassName={`author-item${(isMainAuthor)?\" is-main-author\":\"\"}${(author.ID < 0)?\" is-new-author\":\"\"}`}\n\t\t>\n\t\t\t\t<span className=\"autor-item__name\">\n\t\t\t\t\t<ProfileLink author={author} />\n\t\t\t\t\t<span className=\"author-item__nicename\">{author.user_nicename}</span>\n\t\t\t\t</span>\n\n\t\t\t{isMainAuthor? null : <Delete onClick={onUnselect} /> }\n\n\t\t\t<span\n\t\t\t\tclassName=\"author-item__move author-item__up\"\n\t\t\t\tonClick={()=>onChangePosition(index-1)}\n\t\t\t>\n\t\t\t\t\t▲\n\t\t\t\t</span>\n\t\t\t<span\n\t\t\t\tclassName=\"author-item__move author-item__down\"\n\t\t\t\tonClick={()=>onChangePosition(index+1)}\n\t\t\t>\n\t\t\t\t\t▼\n\t\t\t\t</span>\n\t\t\t<input type=\"hidden\" name=\"additional_authors[ids][]\" value={author.ID} />\n\t\t\t<input type=\"hidden\" name=\"additional_authors[names][]\" value={author.display_name} />\n\t\t</div>\n\t)\n\n}\n\n/**\n * property defaults\n */\nAuthorItem.defaultProps = {\n\tauthor: {\n\t\tID: -1,\n\t\tdisplay_name: \"\",\n\t\tuser_login: \"\",\n\t},\n\tclassName: \"\",\n};\n\n/**\n * define property types\n */\nAuthorItem.propTypes = {\n\tauthor: PropTypes.object.isRequired,\n\tindex: PropTypes.number.isRequired,\n\tonUnselect: PropTypes.func.isRequired,\n\tonChangePosition: PropTypes.func.isRequired,\n\tisMainAuthor: PropTypes.bool.isRequired,\n};\n\n/**\n * export component to public\n */\nexport default AuthorItem;","import {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport _ from 'underscore';\n\nimport Search from './search.jsx';\nimport AuthorItem from './author-item.jsx';\n\nclass MetaBox extends Component {\n\t\n\t/**\n\t * ------------------------------------------------\n\t * lifecycle\n\t * ------------------------------------------------\n\t */\n\tconstructor(props) {\n\t\tsuper(props);\n\t\t\n\t\tthis.state = {\n\t\t\tusers: props.users,\n\t\t\tselected: this.props.selected,\n\t\t\tnew_user_id: -1,\n\t\t};\n\t\t\n\t}\n\n\tcomponentDidMount(){\n\t\tthis.dispatchChanged();\n\t\tthis.getMainUserControl();\n\t}\n\t\n\t/**\n\t * ------------------------------------------------\n\t * rendering\n\t * ------------------------------------------------\n\t */\n\trender() {\n\t\tconst {language, isGutenbergActive} = this.props;\n\t\tconst {selected, users, new_users, main_author} = this.state;\n\t\tlet gutenbergInfo = null;\n\t\tif(isGutenbergActive){\n\t\t\tgutenbergInfo = <input type=\"hidden\" name=\"additional_authors_is_gutenberg\" value=\"it-is\" />\n\t\t}\n\n\t\tconst selectedIds = selected.map(u=>u.ID);\n\n\t\treturn (\n\t\t\t<div className=\"additional-authors\">\n\t\t\t\t{gutenbergInfo}\n\t\t\t\t<Search\n\t\t\t\t\tusers={users}\n\t\t\t\t\tselected={selected}\n\t\t\t\t\tlanguages={language}\n\t\t\t\t onSelect={this.onSelect.bind(this)}\n\t\t\t\t/>\n\t\t\t\t\n\t\t\t\t<hr/>\n\t\t\t\t\n\t\t\t\t<p><i>{language.description}</i></p>\n\n\t\t\t\t<div>\n\n\t\t\t\t\t{selected.map((id, index)=>{\n\t\t\t\t\t\tif(isGutenbergActive && index === 0) return null;\n\t\t\t\t\t\tfor(const key in users){\n\t\t\t\t\t\t\tif(!users.hasOwnProperty(key)) continue;\n\t\t\t\t\t\t\tconst _user = users[key];\n\t\t\t\t\t\t\tif(parseInt(_user.ID) === parseInt(id)){\n\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t<AuthorItem\n\t\t\t\t\t\t\t\t\t\tkey={id}\n\t\t\t\t\t\t\t\t\t\tindex={index}\n\t\t\t\t\t\t\t\t\t\tauthor={_user}\n\t\t\t\t\t\t\t\t\t onUnselect={this.onUnselect.bind(this,_user)}\n\t\t\t\t\t\t\t\t\t onChangePosition={this.onChangePosition.bind(this,_user, index)}\n\t\t\t\t\t\t\t\t\t isMainAuthor={(index === 0)}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t})}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t)\n\t}\n\t\n\t/**\n\t * ------------------------------------------------\n\t * events\n\t * ------------------------------------------------\n\t */\n\tonSelect(author){\n\t\tif(author.ID == 0){\n\t\t\tauthor.ID = this.state.new_user_id--;\n\t\t\tthis.state.users.push(author);\n\t\t}\n\t\t\n\t\tthis.state.selected.push(author.ID);\n\t\tthis.state.selected = _.unique(this.state.selected);\n\t\tthis.setState({ selected: this.state.selected });\n\n\t\tthis.dispatchChanged();\n\t\t\n\t}\n\tonUnselect(author){\n\t\tlet selected = [];\n\t\tif(this.state.main_author == author.ID){\n\t\t\tconsole.log(\"you cannot delete main author\");\n\t\t\treturn;\n\t\t}\n\t\tfor(let _id of this.state.selected){\n\t\t\t\n\t\t\tif(_id == author.ID) continue;\n\t\t\tselected.push(_id);\n\t\t}\n\t\tthis.setState({selected: selected});\n\t\tthis.dispatchChanged()\n\t}\n\tonChangePosition(user, from, to){\n\t\tlet selected = [];\n\t\t\n\t\t/**\n\t\t * new user cannot be on first position\n\t\t */\n\t\tif(to == 0 && user.ID <= 0) return;\n\t\t\n\t\tfor(let index in this.state.selected){\n\t\t\t\n\t\t\tif(!this.state.selected.hasOwnProperty(index)) continue;\n\t\t\t\n\t\t\tif(index == from){\n\t\t\t\tselected.push(this.state.selected[to]);\n\t\t\t} else if( index == to){\n\t\t\t\tselected.push(this.state.selected[from]);\n\t\t\t} else {\n\t\t\t\tselected.push(this.state.selected[index]);\n\t\t\t}\n\t\t}\n\t\tthis.setMainUserID(selected[0]);\n\t\tthis.setState({selected: selected, main_author: this.getMainUserID()});\n\t\tthis.dispatchChanged();\n\t}\n\tonMainAuthorChanged(e){\n\t\tconst author_id = e.target.value;\n\t\t\n\t\t/**\n\t\t * remove if already in selecteds\n\t\t * @type {number}\n\t\t */\n\t\tlet index = 0;\n\t\twhile(index < this.state.selected.length){\n\t\t\tif(this.state.selected[index] === author_id){\n\t\t\t\tthis.state.selected.splice(index,1);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tindex++;\n\t\t}\n\t\t\n\t\t/**\n\t\t * add to top as main author\n\t\t */\n\t\tthis.state.selected.unshift(author_id);\n\t\t\n\t\t// update main author\n\t\tthis.setState({selected:this.state.selected});\n\t}\n\t\n\t/**\n\t * ------------------------------------------------\n\t * other functions\n\t * ------------------------------------------------\n\t */\n\tgetMainUserControl(){\n\t\tif(this.props.isGutenbergActive) return null;\n\n\t\tif(this._main_user_select != null) return this._main_user_select;\n\t\tlet control = document.getElementById(\"post_author_override\");\n\t\tif(control == null)\n\t\t\tcontrol = document.getElementById(\"post-author-selector-1\");\n\n\t\tif(control != null){\n\t\t\tthis._main_user_select = control;\n\t\t\tthis._main_user_select.addEventListener(\"change\",this.onMainAuthorChanged.bind(this));\n\t\t}\n\t\treturn this._main_user_select;\n\t}\n\tsetMainUserID(user_id){\n\t\tconst control = this.getMainUserControl();\n\t\tif(typeof control !== typeof undefined && control != null){\n\t\t\tcontrol.value = user_id;\n\t\t\tcontrol.dispatchEvent(new Event(\"change\"));\n\t\t}\n\n\t}\n\tgetMainUserID(){\n\t\tconst control = this.getMainUserControl();\n\t\tif(typeof control !== typeof undefined && control !== null) return control.value;\n \t\treturn -1;\n\t}\n\tisSelected(user_id){\n\t\tfor(let _uid of this.state.selected){\n\t\t\tif(_uid === user_id) return true;\n\t\t}\n\t\treturn false;\n\t}\n\tdispatchChanged(){\n\t\tclearTimeout(this.dispatchTimeout);\n\t\tthis.dispatchTimeout = setTimeout(()=>{\n\t\t\tconst users = [];\n\t\t\tfor(const uid of this.state.selected){\n\t\t\t\tfor(const user of this.props.users){\n\t\t\t\t\tif(parseInt(user.ID) === parseInt(uid)){\n\t\t\t\t\t\tusers.push({...user});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.props.onAuthorsChange(users);\n\t\t}, 300);\n\n\t}\n}\n\n/**\n * property defaults\n */\nMetaBox.defaultProps = {\n\tusers: [],\n\tlanguage: {},\n\tonAuthorsChange: () => {},\n};\n\n/**\n * define property types\n */\nMetaBox.propTypes = {\n\tisGutenbergActive: PropTypes.bool.isRequired,\n\tusers: PropTypes.array.isRequired,\n\tselected: PropTypes.array.isRequired,\n\tlanguage: PropTypes.object.isRequired,\n\tonAuthorsChange: PropTypes.func,\n};\n\n/**\n * export component to public\n */\nexport default MetaBox;","import ReactDOM from 'react-dom';\nimport MetaBox from './meta-box/meta-box.jsx';\n\nimport \"./meta-box.scss\";\n\n/**\n * wait for dom to be ready so all plugins etc are loaded\n */\ndocument.addEventListener(\"DOMContentLoaded\", function(event) {\n\t\n\t/**\n\t * append app to grid app root\n\t */\n\t\n\tconst {language, users, selected, root_id} = AdditionalAuthors;\n\n\tReactDOM.render(\n\t\t<MetaBox\n\t\t\tisGutenbergActive={false}\n\t\t\tlanguage={language}\n\t\t\tusers={users}\n\t\t selected={selected}\n\t\t\tonAuthorsChange={(authors)=>{\n\t\t\t\tdocument.dispatchEvent(new CustomEvent(\"onAdditionalAuthorsChange\", { detail: authors }));\n\t\t\t}}\n\t\t/>,\n\t\tdocument.getElementById(root_id)\n\t);\n});"],"names":["ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","module","exports","shim","props","propName","componentName","location","propFullName","secret","err","Error","name","getShim","isRequired","ReactPropTypes","array","bigint","bool","func","number","object","string","symbol","any","arrayOf","element","elementType","instanceOf","node","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","PropTypes","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","window","VERSION","root","self","global","Function","ArrayProto","Array","ObjProto","SymbolProto","push","slice","toString","supportsArrayBuffer","ArrayBuffer","supportsDataView","DataView","nativeIsArray","isArray","nativeKeys","keys","nativeCreate","create","nativeIsView","isView","_isNaN","isNaN","_isFinite","isFinite","hasEnumBug","propertyIsEnumerable","nonEnumerableProps","MAX_ARRAY_INDEX","Math","pow","restArguments","startIndex","length","max","arguments","rest","index","this","args","apply","isObject","type","isNull","isUndefined","isBoolean","isElement","nodeType","tagTester","tag","isFunction","nodelist","document","childNodes","Int8Array","hasStringTagBug","isIE11","Map","isDataView","getInt8","isArrayBuffer","buffer","has","isArguments","isSymbol","parseFloat","isNumber","constant","createSizePropertyCheck","getSizeProperty","collection","sizeProperty","shallowProperty","typedArrayPattern","test","collectNonEnumProps","hash","l","i","contains","emulatedSet","nonEnumIdx","constructor","proto","isEmpty","isString","isMatch","attrs","_keys","_","_wrapped","toBufferView","bufferSource","Uint8Array","byteOffset","valueOf","toJSON","String","tagDataView","eq","b","aStack","bStack","deepEq","className","areArrays","aCtor","bCtor","pop","isEqual","allKeys","ie11fingerprint","methods","weakMapMethods","forEachName","commonInit","mapTail","mapMethods","concat","setMethods","values","pairs","invert","result","functions","names","sort","createAssigner","keysFunc","defaults","source","baseCreate","Ctor","extendOwn","clone","extend","tap","interceptor","toPath","path","deepGet","defaultValue","identity","matcher","property","optimizeCb","context","argCount","accumulator","baseIteratee","iteratee","Infinity","cb","mapObject","results","currentKey","noop","propertyOf","times","accum","random","min","floor","Date","now","getTime","createEscaper","map","escaper","match","join","testRegexp","RegExp","replaceRegexp","replace","templateSettings","evaluate","interpolate","escape","noMatch","escapes","escapeRegExp","escapeChar","bareIdentifier","template","text","settings","oldSettings","offset","render","argument","variable","e","data","fallback","idCounter","uniqueId","prefix","id","chain","instance","_chain","executeBound","sourceFunc","boundFunc","callingContext","partial","boundArgs","placeholder","bound","position","TypeError","callArgs","flatten","input","depth","strict","output","idx","j","len","bind","memoize","hasher","cache","address","wait","setTimeout","delay","throttle","options","timeout","previous","later","leading","throttled","_now","remaining","clearTimeout","trailing","cancel","debounce","immediate","passed","debounced","_args","wrap","wrapper","negate","predicate","compose","start","after","before","memo","findKey","createPredicateIndexFinder","dir","sortedIndex","low","high","mid","createIndexFinder","predicateFind","item","findIndex","findLastIndex","find","findWhere","each","createReduce","initial","reducer","filter","list","reject","every","some","fromIndex","guard","indexOf","contextPath","method","pluck","where","computed","lastComputed","v","reStrSymbol","toArray","sample","last","rand","temp","shuffle","sortBy","criteria","left","right","group","behavior","partition","pass","size","keyInObj","pick","first","compact","Boolean","otherArrays","difference","uniq","isSorted","seen","arrays","intersection","argsLength","unzip","range","stop","step","ceil","chunk","count","chainResult","mixin","SearchItem","Component","super","state","over","isOver","componentWillReceiveProps","nextProps","display_name","author","onMouseOver","onMouseOut","onClick","is_over","setState","onSelect","NewItem","Search","query","over_index","search_result","focus","onKeyUp","languages","label","onKeyDown","onChange","onFocus","onFocusSearch","onBlur","renderList","selected","newItem","onNewItem","ID","target","users","user","toLowerCase","parseInt","unshift","closeTimeout","user_nicename","keyCode","preventDefault","defaultProps","propTypes","Delete","ProfileLink","href","AuthorItem","isMainAuthor","onUnselect","onChangePosition","user_login","MetaBox","new_user_id","componentDidMount","dispatchChanged","getMainUserControl","language","isGutenbergActive","new_users","main_author","gutenbergInfo","u","description","_user","_id","console","log","from","to","setMainUserID","getMainUserID","onMainAuthorChanged","author_id","splice","_main_user_select","control","getElementById","addEventListener","user_id","dispatchEvent","Event","isSelected","_uid","dispatchTimeout","uid","onAuthorsChange","event","root_id","AdditionalAuthors","ReactDOM","authors","CustomEvent","detail"],"sourceRoot":""}1 {"version":3,"file":"additional-authors-meta-box.js","mappings":"uCASA,IAAIA,EAAuB,EAAQ,KAEnC,SAASC,IAAiB,CAC1B,SAASC,IAA0B,CACnCA,EAAuBC,kBAAoBF,EAE3CG,EAAOC,QAAU,WACf,SAASC,EAAKC,EAAOC,EAAUC,EAAeC,EAAUC,EAAcC,GACpE,GAAIA,IAAWZ,EAAf,CAIA,IAAIa,EAAM,IAAIC,MACZ,mLAKF,MADAD,EAAIE,KAAO,sBACLF,CAPN,CAQF,CAEA,SAASG,IACP,OAAOV,CACT,CAHAA,EAAKW,WAAaX,EAMlB,IAAIY,EAAiB,CACnBC,MAAOb,EACPc,OAAQd,EACRe,KAAMf,EACNgB,KAAMhB,EACNiB,OAAQjB,EACRkB,OAAQlB,EACRmB,OAAQnB,EACRoB,OAAQpB,EAERqB,IAAKrB,EACLsB,QAASZ,EACTa,QAASvB,EACTwB,YAAaxB,EACbyB,WAAYf,EACZgB,KAAM1B,EACN2B,SAAUjB,EACVkB,MAAOlB,EACPmB,UAAWnB,EACXoB,MAAO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ACd,IAAI,MAAMoD,KAAOzX,KAAKmS,MAAM6B,SAC3B,IAAI,MAAMM,KAAQtU,KAAKtG,MAAM2a,MACzBG,SAASF,EAAKH,MAAQK,SAASiD,IACjCpD,EAAMrW,KAAK,IAAIsW,IAIlBtU,KAAKtG,MAAMge,gBAAgBrD,EAAM,GAC/B,IAEJ,EAMDmB,GAAQV,aAAe,CACtBT,MAAO,GACPwB,SAAU,CAAC,EACX6B,gBAAiBA,QAMlBlC,GAAQT,UAAY,CACnBe,kBAAmBpa,IAAAA,KAAetB,WAClCia,MAAO3Y,IAAAA,MAAgBtB,WACvB4Z,SAAUtY,IAAAA,MAAgBtB,WAC1Byb,SAAUna,IAAAA,OAAiBtB,WAC3Bsd,gBAAiBhc,IAAAA,MAMlB,YC7OAoF,SAASoW,iBAAiB,oBAAoB,SAASS,GAMtD,MAAM,SAAC9B,EAAQ,MAAExB,EAAK,SAAEL,EAAQ,QAAE4D,GAAWC,kBAE7CC,IAAAA,QACCpF,EAAAA,EAAAA,eAAC8C,GAAO,CACPM,mBAAmB,EACnBD,SAAUA,EACVxB,MAAOA,EACJL,SAAUA,EACb0D,gBAAkBK,IACjBjX,SAASsW,cAAc,IAAIY,YAAY,4BAA6B,CAAEC,OAAQF,IAAW,IAG3FjX,SAASmW,eAAeW,GAE1B,G","sources":["webpack://@palasthotel/additional-authors/./node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack://@palasthotel/additional-authors/webpack/bootstrap","webpack://@palasthotel/additional-authors/webpack/runtime/compat get default export","webpack://@palasthotel/additional-authors/webpack/runtime/define property getters","webpack://@palasthotel/additional-authors/webpack/runtime/hasOwnProperty shorthand","webpack://@palasthotel/additional-authors/webpack/runtime/make namespace object","webpack://@palasthotel/additional-authors/external window \"React\"","webpack://@palasthotel/additional-authors/external window \"ReactDOM\"","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_setup.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/restArguments.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isObject.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isNull.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isUndefined.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isBoolean.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isElement.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_tagTester.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isString.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isNumber.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isDate.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isRegExp.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isError.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isSymbol.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isArrayBuffer.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isFunction.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_hasObjectTag.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_stringTagBug.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isDataView.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isArray.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_has.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isArguments.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isFinite.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isNaN.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/constant.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_createSizePropertyCheck.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_shallowProperty.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_getByteLength.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_isBufferLike.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isTypedArray.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_getLength.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_collectNonEnumProps.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/keys.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isEmpty.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isMatch.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/underscore.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_toBufferView.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isEqual.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/allKeys.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_methodFingerprint.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isMap.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isWeakMap.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isSet.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isWeakSet.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/values.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/pairs.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/invert.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/functions.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_createAssigner.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/extend.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/extendOwn.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/defaults.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_baseCreate.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/create.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/clone.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/tap.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/toPath.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_toPath.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_deepGet.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/get.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/has.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/identity.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/matcher.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/property.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_optimizeCb.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_baseIteratee.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/iteratee.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_cb.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/mapObject.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/noop.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/propertyOf.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/times.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/random.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/now.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_createEscaper.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_escapeMap.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/escape.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/unescape.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_unescapeMap.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/templateSettings.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/template.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/result.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/uniqueId.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/chain.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_executeBound.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/partial.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/bind.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_isArrayLike.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_flatten.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/bindAll.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/memoize.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/delay.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/defer.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/throttle.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/debounce.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/wrap.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/negate.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/compose.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/after.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/before.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/once.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/findKey.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_createPredicateIndexFinder.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/findIndex.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/findLastIndex.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/sortedIndex.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_createIndexFinder.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/indexOf.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/lastIndexOf.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/find.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/findWhere.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/each.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/map.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_createReduce.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/reduce.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/reduceRight.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/filter.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/reject.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/every.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/some.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/contains.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/invoke.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/pluck.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/where.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/max.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/min.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/toArray.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/sample.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/shuffle.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/sortBy.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_group.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/groupBy.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/indexBy.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/countBy.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/partition.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/size.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_keyInObj.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/pick.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/omit.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/initial.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/first.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/rest.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/last.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/compact.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/flatten.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/difference.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/without.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/uniq.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/union.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/intersection.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/unzip.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/zip.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/object.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/range.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/chunk.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_chainResult.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/mixin.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/underscore-array-methods.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/index-default.js","webpack://@palasthotel/additional-authors/./src/meta-box/search-item.jsx","webpack://@palasthotel/additional-authors/./src/meta-box/new-item.jsx","webpack://@palasthotel/additional-authors/./src/meta-box/search.jsx","webpack://@palasthotel/additional-authors/./src/meta-box/author-item.jsx","webpack://@palasthotel/additional-authors/./src/meta-box/meta-box.jsx","webpack://@palasthotel/additional-authors/./src/meta-box.js"],"sourcesContent":["/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"React\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"ReactDOM\"];","// Current version.\nexport var VERSION = '1.13.6';\n\n// Establish the root object, `window` (`self`) in the browser, `global`\n// on the server, or `this` in some virtual machines. We use `self`\n// instead of `window` for `WebWorker` support.\nexport var root = (typeof self == 'object' && self.self === self && self) ||\n (typeof global == 'object' && global.global === global && global) ||\n Function('return this')() ||\n {};\n\n// Save bytes in the minified (but not gzipped) version:\nexport var ArrayProto = Array.prototype, ObjProto = Object.prototype;\nexport var SymbolProto = typeof Symbol !== 'undefined' ? Symbol.prototype : null;\n\n// Create quick reference variables for speed access to core prototypes.\nexport var push = ArrayProto.push,\n slice = ArrayProto.slice,\n toString = ObjProto.toString,\n hasOwnProperty = ObjProto.hasOwnProperty;\n\n// Modern feature detection.\nexport var supportsArrayBuffer = typeof ArrayBuffer !== 'undefined',\n supportsDataView = typeof DataView !== 'undefined';\n\n// All **ECMAScript 5+** native function implementations that we hope to use\n// are declared here.\nexport var nativeIsArray = Array.isArray,\n nativeKeys = Object.keys,\n nativeCreate = Object.create,\n nativeIsView = supportsArrayBuffer && ArrayBuffer.isView;\n\n// Create references to these builtin functions because we override them.\nexport var _isNaN = isNaN,\n _isFinite = isFinite;\n\n// Keys in IE < 9 that won't be iterated by `for key in ...` and thus missed.\nexport var hasEnumBug = !{toString: null}.propertyIsEnumerable('toString');\nexport var nonEnumerableProps = ['valueOf', 'isPrototypeOf', 'toString',\n 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString'];\n\n// The largest integer that can be represented exactly.\nexport var MAX_ARRAY_INDEX = Math.pow(2, 53) - 1;\n","// Some functions take a variable number of arguments, or a few expected\n// arguments at the beginning and then a variable number of values to operate\n// on. This helper accumulates all remaining arguments past the function’s\n// argument length (or an explicit `startIndex`), into an array that becomes\n// the last argument. Similar to ES6’s \"rest parameter\".\nexport default function restArguments(func, startIndex) {\n startIndex = startIndex == null ? func.length - 1 : +startIndex;\n return function() {\n var length = Math.max(arguments.length - startIndex, 0),\n rest = Array(length),\n index = 0;\n for (; index < length; index++) {\n rest[index] = arguments[index + startIndex];\n }\n switch (startIndex) {\n case 0: return func.call(this, rest);\n case 1: return func.call(this, arguments[0], rest);\n case 2: return func.call(this, arguments[0], arguments[1], rest);\n }\n var args = Array(startIndex + 1);\n for (index = 0; index < startIndex; index++) {\n args[index] = arguments[index];\n }\n args[startIndex] = rest;\n return func.apply(this, args);\n };\n}\n","// Is a given variable an object?\nexport default function isObject(obj) {\n var type = typeof obj;\n return type === 'function' || (type === 'object' && !!obj);\n}\n","// Is a given value equal to null?\nexport default function isNull(obj) {\n return obj === null;\n}\n","// Is a given variable undefined?\nexport default function isUndefined(obj) {\n return obj === void 0;\n}\n","import { toString } from './_setup.js';\n\n// Is a given value a boolean?\nexport default function isBoolean(obj) {\n return obj === true || obj === false || toString.call(obj) === '[object Boolean]';\n}\n","// Is a given value a DOM element?\nexport default function isElement(obj) {\n return !!(obj && obj.nodeType === 1);\n}\n","import { toString } from './_setup.js';\n\n// Internal function for creating a `toString`-based type tester.\nexport default function tagTester(name) {\n var tag = '[object ' + name + ']';\n return function(obj) {\n return toString.call(obj) === tag;\n };\n}\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('String');\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('Number');\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('Date');\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('RegExp');\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('Error');\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('Symbol');\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('ArrayBuffer');\n","import tagTester from './_tagTester.js';\nimport { root } from './_setup.js';\n\nvar isFunction = tagTester('Function');\n\n// Optimize `isFunction` if appropriate. Work around some `typeof` bugs in old\n// v8, IE 11 (#1621), Safari 8 (#1929), and PhantomJS (#2236).\nvar nodelist = root.document && root.document.childNodes;\nif (typeof /./ != 'function' && typeof Int8Array != 'object' && typeof nodelist != 'function') {\n isFunction = function(obj) {\n return typeof obj == 'function' || false;\n };\n}\n\nexport default isFunction;\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('Object');\n","import { supportsDataView } from './_setup.js';\nimport hasObjectTag from './_hasObjectTag.js';\n\n// In IE 10 - Edge 13, `DataView` has string tag `'[object Object]'`.\n// In IE 11, the most common among them, this problem also applies to\n// `Map`, `WeakMap` and `Set`.\nexport var hasStringTagBug = (\n supportsDataView && hasObjectTag(new DataView(new ArrayBuffer(8)))\n ),\n isIE11 = (typeof Map !== 'undefined' && hasObjectTag(new Map));\n","import tagTester from './_tagTester.js';\nimport isFunction from './isFunction.js';\nimport isArrayBuffer from './isArrayBuffer.js';\nimport { hasStringTagBug } from './_stringTagBug.js';\n\nvar isDataView = tagTester('DataView');\n\n// In IE 10 - Edge 13, we need a different heuristic\n// to determine whether an object is a `DataView`.\nfunction ie10IsDataView(obj) {\n return obj != null && isFunction(obj.getInt8) && isArrayBuffer(obj.buffer);\n}\n\nexport default (hasStringTagBug ? ie10IsDataView : isDataView);\n","import { nativeIsArray } from './_setup.js';\nimport tagTester from './_tagTester.js';\n\n// Is a given value an array?\n// Delegates to ECMA5's native `Array.isArray`.\nexport default nativeIsArray || tagTester('Array');\n","import { hasOwnProperty } from './_setup.js';\n\n// Internal function to check whether `key` is an own property name of `obj`.\nexport default function has(obj, key) {\n return obj != null && hasOwnProperty.call(obj, key);\n}\n","import tagTester from './_tagTester.js';\nimport has from './_has.js';\n\nvar isArguments = tagTester('Arguments');\n\n// Define a fallback version of the method in browsers (ahem, IE < 9), where\n// there isn't any inspectable \"Arguments\" type.\n(function() {\n if (!isArguments(arguments)) {\n isArguments = function(obj) {\n return has(obj, 'callee');\n };\n }\n}());\n\nexport default isArguments;\n","import { _isFinite } from './_setup.js';\nimport isSymbol from './isSymbol.js';\n\n// Is a given object a finite number?\nexport default function isFinite(obj) {\n return !isSymbol(obj) && _isFinite(obj) && !isNaN(parseFloat(obj));\n}\n","import { _isNaN } from './_setup.js';\nimport isNumber from './isNumber.js';\n\n// Is the given value `NaN`?\nexport default function isNaN(obj) {\n return isNumber(obj) && _isNaN(obj);\n}\n","// Predicate-generating function. Often useful outside of Underscore.\nexport default function constant(value) {\n return function() {\n return value;\n };\n}\n","import { MAX_ARRAY_INDEX } from './_setup.js';\n\n// Common internal logic for `isArrayLike` and `isBufferLike`.\nexport default function createSizePropertyCheck(getSizeProperty) {\n return function(collection) {\n var sizeProperty = getSizeProperty(collection);\n return typeof sizeProperty == 'number' && sizeProperty >= 0 && sizeProperty <= MAX_ARRAY_INDEX;\n }\n}\n","// Internal helper to generate a function to obtain property `key` from `obj`.\nexport default function shallowProperty(key) {\n return function(obj) {\n return obj == null ? void 0 : obj[key];\n };\n}\n","import shallowProperty from './_shallowProperty.js';\n\n// Internal helper to obtain the `byteLength` property of an object.\nexport default shallowProperty('byteLength');\n","import createSizePropertyCheck from './_createSizePropertyCheck.js';\nimport getByteLength from './_getByteLength.js';\n\n// Internal helper to determine whether we should spend extensive checks against\n// `ArrayBuffer` et al.\nexport default createSizePropertyCheck(getByteLength);\n","import { supportsArrayBuffer, nativeIsView, toString } from './_setup.js';\nimport isDataView from './isDataView.js';\nimport constant from './constant.js';\nimport isBufferLike from './_isBufferLike.js';\n\n// Is a given value a typed array?\nvar typedArrayPattern = /\\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\\]/;\nfunction isTypedArray(obj) {\n // `ArrayBuffer.isView` is the most future-proof, so use it when available.\n // Otherwise, fall back on the above regular expression.\n return nativeIsView ? (nativeIsView(obj) && !isDataView(obj)) :\n isBufferLike(obj) && typedArrayPattern.test(toString.call(obj));\n}\n\nexport default supportsArrayBuffer ? isTypedArray : constant(false);\n","import shallowProperty from './_shallowProperty.js';\n\n// Internal helper to obtain the `length` property of an object.\nexport default shallowProperty('length');\n","import { nonEnumerableProps, ObjProto } from './_setup.js';\nimport isFunction from './isFunction.js';\nimport has from './_has.js';\n\n// Internal helper to create a simple lookup structure.\n// `collectNonEnumProps` used to depend on `_.contains`, but this led to\n// circular imports. `emulatedSet` is a one-off solution that only works for\n// arrays of strings.\nfunction emulatedSet(keys) {\n var hash = {};\n for (var l = keys.length, i = 0; i < l; ++i) hash[keys[i]] = true;\n return {\n contains: function(key) { return hash[key] === true; },\n push: function(key) {\n hash[key] = true;\n return keys.push(key);\n }\n };\n}\n\n// Internal helper. Checks `keys` for the presence of keys in IE < 9 that won't\n// be iterated by `for key in ...` and thus missed. Extends `keys` in place if\n// needed.\nexport default function collectNonEnumProps(obj, keys) {\n keys = emulatedSet(keys);\n var nonEnumIdx = nonEnumerableProps.length;\n var constructor = obj.constructor;\n var proto = (isFunction(constructor) && constructor.prototype) || ObjProto;\n\n // Constructor is a special case.\n var prop = 'constructor';\n if (has(obj, prop) && !keys.contains(prop)) keys.push(prop);\n\n while (nonEnumIdx--) {\n prop = nonEnumerableProps[nonEnumIdx];\n if (prop in obj && obj[prop] !== proto[prop] && !keys.contains(prop)) {\n keys.push(prop);\n }\n }\n}\n","import isObject from './isObject.js';\nimport { nativeKeys, hasEnumBug } from './_setup.js';\nimport has from './_has.js';\nimport collectNonEnumProps from './_collectNonEnumProps.js';\n\n// Retrieve the names of an object's own properties.\n// Delegates to **ECMAScript 5**'s native `Object.keys`.\nexport default function keys(obj) {\n if (!isObject(obj)) return [];\n if (nativeKeys) return nativeKeys(obj);\n var keys = [];\n for (var key in obj) if (has(obj, key)) keys.push(key);\n // Ahem, IE < 9.\n if (hasEnumBug) collectNonEnumProps(obj, keys);\n return keys;\n}\n","import getLength from './_getLength.js';\nimport isArray from './isArray.js';\nimport isString from './isString.js';\nimport isArguments from './isArguments.js';\nimport keys from './keys.js';\n\n// Is a given array, string, or object empty?\n// An \"empty\" object has no enumerable own-properties.\nexport default function isEmpty(obj) {\n if (obj == null) return true;\n // Skip the more expensive `toString`-based type checks if `obj` has no\n // `.length`.\n var length = getLength(obj);\n if (typeof length == 'number' && (\n isArray(obj) || isString(obj) || isArguments(obj)\n )) return length === 0;\n return getLength(keys(obj)) === 0;\n}\n","import keys from './keys.js';\n\n// Returns whether an object has a given set of `key:value` pairs.\nexport default function isMatch(object, attrs) {\n var _keys = keys(attrs), length = _keys.length;\n if (object == null) return !length;\n var obj = Object(object);\n for (var i = 0; i < length; i++) {\n var key = _keys[i];\n if (attrs[key] !== obj[key] || !(key in obj)) return false;\n }\n return true;\n}\n","import { VERSION } from './_setup.js';\n\n// If Underscore is called as a function, it returns a wrapped object that can\n// be used OO-style. This wrapper holds altered versions of all functions added\n// through `_.mixin`. Wrapped objects may be chained.\nexport default function _(obj) {\n if (obj instanceof _) return obj;\n if (!(this instanceof _)) return new _(obj);\n this._wrapped = obj;\n}\n\n_.VERSION = VERSION;\n\n// Extracts the result from a wrapped and chained object.\n_.prototype.value = function() {\n return this._wrapped;\n};\n\n// Provide unwrapping proxies for some methods used in engine operations\n// such as arithmetic and JSON stringification.\n_.prototype.valueOf = _.prototype.toJSON = _.prototype.value;\n\n_.prototype.toString = function() {\n return String(this._wrapped);\n};\n","import getByteLength from './_getByteLength.js';\n\n// Internal function to wrap or shallow-copy an ArrayBuffer,\n// typed array or DataView to a new view, reusing the buffer.\nexport default function toBufferView(bufferSource) {\n return new Uint8Array(\n bufferSource.buffer || bufferSource,\n bufferSource.byteOffset || 0,\n getByteLength(bufferSource)\n );\n}\n","import _ from './underscore.js';\nimport { toString, SymbolProto } from './_setup.js';\nimport getByteLength from './_getByteLength.js';\nimport isTypedArray from './isTypedArray.js';\nimport isFunction from './isFunction.js';\nimport { hasStringTagBug } from './_stringTagBug.js';\nimport isDataView from './isDataView.js';\nimport keys from './keys.js';\nimport has from './_has.js';\nimport toBufferView from './_toBufferView.js';\n\n// We use this string twice, so give it a name for minification.\nvar tagDataView = '[object DataView]';\n\n// Internal recursive comparison function for `_.isEqual`.\nfunction eq(a, b, aStack, bStack) {\n // Identical objects are equal. `0 === -0`, but they aren't identical.\n // See the [Harmony `egal` proposal](https://wiki.ecmascript.org/doku.php?id=harmony:egal).\n if (a === b) return a !== 0 || 1 / a === 1 / b;\n // `null` or `undefined` only equal to itself (strict comparison).\n if (a == null || b == null) return false;\n // `NaN`s are equivalent, but non-reflexive.\n if (a !== a) return b !== b;\n // Exhaust primitive checks\n var type = typeof a;\n if (type !== 'function' && type !== 'object' && typeof b != 'object') return false;\n return deepEq(a, b, aStack, bStack);\n}\n\n// Internal recursive comparison function for `_.isEqual`.\nfunction deepEq(a, b, aStack, bStack) {\n // Unwrap any wrapped objects.\n if (a instanceof _) a = a._wrapped;\n if (b instanceof _) b = b._wrapped;\n // Compare `[[Class]]` names.\n var className = toString.call(a);\n if (className !== toString.call(b)) return false;\n // Work around a bug in IE 10 - Edge 13.\n if (hasStringTagBug && className == '[object Object]' && isDataView(a)) {\n if (!isDataView(b)) return false;\n className = tagDataView;\n }\n switch (className) {\n // These types are compared by value.\n case '[object RegExp]':\n // RegExps are coerced to strings for comparison (Note: '' + /a/i === '/a/i')\n case '[object String]':\n // Primitives and their corresponding object wrappers are equivalent; thus, `\"5\"` is\n // equivalent to `new String(\"5\")`.\n return '' + a === '' + b;\n case '[object Number]':\n // `NaN`s are equivalent, but non-reflexive.\n // Object(NaN) is equivalent to NaN.\n if (+a !== +a) return +b !== +b;\n // An `egal` comparison is performed for other numeric values.\n return +a === 0 ? 1 / +a === 1 / b : +a === +b;\n case '[object Date]':\n case '[object Boolean]':\n // Coerce dates and booleans to numeric primitive values. Dates are compared by their\n // millisecond representations. Note that invalid dates with millisecond representations\n // of `NaN` are not equivalent.\n return +a === +b;\n case '[object Symbol]':\n return SymbolProto.valueOf.call(a) === SymbolProto.valueOf.call(b);\n case '[object ArrayBuffer]':\n case tagDataView:\n // Coerce to typed array so we can fall through.\n return deepEq(toBufferView(a), toBufferView(b), aStack, bStack);\n }\n\n var areArrays = className === '[object Array]';\n if (!areArrays && isTypedArray(a)) {\n var byteLength = getByteLength(a);\n if (byteLength !== getByteLength(b)) return false;\n if (a.buffer === b.buffer && a.byteOffset === b.byteOffset) return true;\n areArrays = true;\n }\n if (!areArrays) {\n if (typeof a != 'object' || typeof b != 'object') return false;\n\n // Objects with different constructors are not equivalent, but `Object`s or `Array`s\n // from different frames are.\n var aCtor = a.constructor, bCtor = b.constructor;\n if (aCtor !== bCtor && !(isFunction(aCtor) && aCtor instanceof aCtor &&\n isFunction(bCtor) && bCtor instanceof bCtor)\n && ('constructor' in a && 'constructor' in b)) {\n return false;\n }\n }\n // Assume equality for cyclic structures. The algorithm for detecting cyclic\n // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.\n\n // Initializing stack of traversed objects.\n // It's done here since we only need them for objects and arrays comparison.\n aStack = aStack || [];\n bStack = bStack || [];\n var length = aStack.length;\n while (length--) {\n // Linear search. Performance is inversely proportional to the number of\n // unique nested structures.\n if (aStack[length] === a) return bStack[length] === b;\n }\n\n // Add the first object to the stack of traversed objects.\n aStack.push(a);\n bStack.push(b);\n\n // Recursively compare objects and arrays.\n if (areArrays) {\n // Compare array lengths to determine if a deep comparison is necessary.\n length = a.length;\n if (length !== b.length) return false;\n // Deep compare the contents, ignoring non-numeric properties.\n while (length--) {\n if (!eq(a[length], b[length], aStack, bStack)) return false;\n }\n } else {\n // Deep compare objects.\n var _keys = keys(a), key;\n length = _keys.length;\n // Ensure that both objects contain the same number of properties before comparing deep equality.\n if (keys(b).length !== length) return false;\n while (length--) {\n // Deep compare each member\n key = _keys[length];\n if (!(has(b, key) && eq(a[key], b[key], aStack, bStack))) return false;\n }\n }\n // Remove the first object from the stack of traversed objects.\n aStack.pop();\n bStack.pop();\n return true;\n}\n\n// Perform a deep comparison to check if two objects are equal.\nexport default function isEqual(a, b) {\n return eq(a, b);\n}\n","import isObject from './isObject.js';\nimport { hasEnumBug } from './_setup.js';\nimport collectNonEnumProps from './_collectNonEnumProps.js';\n\n// Retrieve all the enumerable property names of an object.\nexport default function allKeys(obj) {\n if (!isObject(obj)) return [];\n var keys = [];\n for (var key in obj) keys.push(key);\n // Ahem, IE < 9.\n if (hasEnumBug) collectNonEnumProps(obj, keys);\n return keys;\n}\n","import getLength from './_getLength.js';\nimport isFunction from './isFunction.js';\nimport allKeys from './allKeys.js';\n\n// Since the regular `Object.prototype.toString` type tests don't work for\n// some types in IE 11, we use a fingerprinting heuristic instead, based\n// on the methods. It's not great, but it's the best we got.\n// The fingerprint method lists are defined below.\nexport function ie11fingerprint(methods) {\n var length = getLength(methods);\n return function(obj) {\n if (obj == null) return false;\n // `Map`, `WeakMap` and `Set` have no enumerable keys.\n var keys = allKeys(obj);\n if (getLength(keys)) return false;\n for (var i = 0; i < length; i++) {\n if (!isFunction(obj[methods[i]])) return false;\n }\n // If we are testing against `WeakMap`, we need to ensure that\n // `obj` doesn't have a `forEach` method in order to distinguish\n // it from a regular `Map`.\n return methods !== weakMapMethods || !isFunction(obj[forEachName]);\n };\n}\n\n// In the interest of compact minification, we write\n// each string in the fingerprints only once.\nvar forEachName = 'forEach',\n hasName = 'has',\n commonInit = ['clear', 'delete'],\n mapTail = ['get', hasName, 'set'];\n\n// `Map`, `WeakMap` and `Set` each have slightly different\n// combinations of the above sublists.\nexport var mapMethods = commonInit.concat(forEachName, mapTail),\n weakMapMethods = commonInit.concat(mapTail),\n setMethods = ['add'].concat(commonInit, forEachName, hasName);\n","import tagTester from './_tagTester.js';\nimport { isIE11 } from './_stringTagBug.js';\nimport { ie11fingerprint, mapMethods } from './_methodFingerprint.js';\n\nexport default isIE11 ? ie11fingerprint(mapMethods) : tagTester('Map');\n","import tagTester from './_tagTester.js';\nimport { isIE11 } from './_stringTagBug.js';\nimport { ie11fingerprint, weakMapMethods } from './_methodFingerprint.js';\n\nexport default isIE11 ? ie11fingerprint(weakMapMethods) : tagTester('WeakMap');\n","import tagTester from './_tagTester.js';\nimport { isIE11 } from './_stringTagBug.js';\nimport { ie11fingerprint, setMethods } from './_methodFingerprint.js';\n\nexport default isIE11 ? ie11fingerprint(setMethods) : tagTester('Set');\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('WeakSet');\n","import keys from './keys.js';\n\n// Retrieve the values of an object's properties.\nexport default function values(obj) {\n var _keys = keys(obj);\n var length = _keys.length;\n var values = Array(length);\n for (var i = 0; i < length; i++) {\n values[i] = obj[_keys[i]];\n }\n return values;\n}\n","import keys from './keys.js';\n\n// Convert an object into a list of `[key, value]` pairs.\n// The opposite of `_.object` with one argument.\nexport default function pairs(obj) {\n var _keys = keys(obj);\n var length = _keys.length;\n var pairs = Array(length);\n for (var i = 0; i < length; i++) {\n pairs[i] = [_keys[i], obj[_keys[i]]];\n }\n return pairs;\n}\n","import keys from './keys.js';\n\n// Invert the keys and values of an object. The values must be serializable.\nexport default function invert(obj) {\n var result = {};\n var _keys = keys(obj);\n for (var i = 0, length = _keys.length; i < length; i++) {\n result[obj[_keys[i]]] = _keys[i];\n }\n return result;\n}\n","import isFunction from './isFunction.js';\n\n// Return a sorted list of the function names available on the object.\nexport default function functions(obj) {\n var names = [];\n for (var key in obj) {\n if (isFunction(obj[key])) names.push(key);\n }\n return names.sort();\n}\n","// An internal function for creating assigner functions.\nexport default function createAssigner(keysFunc, defaults) {\n return function(obj) {\n var length = arguments.length;\n if (defaults) obj = Object(obj);\n if (length < 2 || obj == null) return obj;\n for (var index = 1; index < length; index++) {\n var source = arguments[index],\n keys = keysFunc(source),\n l = keys.length;\n for (var i = 0; i < l; i++) {\n var key = keys[i];\n if (!defaults || obj[key] === void 0) obj[key] = source[key];\n }\n }\n return obj;\n };\n}\n","import createAssigner from './_createAssigner.js';\nimport allKeys from './allKeys.js';\n\n// Extend a given object with all the properties in passed-in object(s).\nexport default createAssigner(allKeys);\n","import createAssigner from './_createAssigner.js';\nimport keys from './keys.js';\n\n// Assigns a given object with all the own properties in the passed-in\n// object(s).\n// (https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/assign)\nexport default createAssigner(keys);\n","import createAssigner from './_createAssigner.js';\nimport allKeys from './allKeys.js';\n\n// Fill in a given object with default properties.\nexport default createAssigner(allKeys, true);\n","import isObject from './isObject.js';\nimport { nativeCreate } from './_setup.js';\n\n// Create a naked function reference for surrogate-prototype-swapping.\nfunction ctor() {\n return function(){};\n}\n\n// An internal function for creating a new object that inherits from another.\nexport default function baseCreate(prototype) {\n if (!isObject(prototype)) return {};\n if (nativeCreate) return nativeCreate(prototype);\n var Ctor = ctor();\n Ctor.prototype = prototype;\n var result = new Ctor;\n Ctor.prototype = null;\n return result;\n}\n","import baseCreate from './_baseCreate.js';\nimport extendOwn from './extendOwn.js';\n\n// Creates an object that inherits from the given prototype object.\n// If additional properties are provided then they will be added to the\n// created object.\nexport default function create(prototype, props) {\n var result = baseCreate(prototype);\n if (props) extendOwn(result, props);\n return result;\n}\n","import isObject from './isObject.js';\nimport isArray from './isArray.js';\nimport extend from './extend.js';\n\n// Create a (shallow-cloned) duplicate of an object.\nexport default function clone(obj) {\n if (!isObject(obj)) return obj;\n return isArray(obj) ? obj.slice() : extend({}, obj);\n}\n","// Invokes `interceptor` with the `obj` and then returns `obj`.\n// The primary purpose of this method is to \"tap into\" a method chain, in\n// order to perform operations on intermediate results within the chain.\nexport default function tap(obj, interceptor) {\n interceptor(obj);\n return obj;\n}\n","import _ from './underscore.js';\nimport isArray from './isArray.js';\n\n// Normalize a (deep) property `path` to array.\n// Like `_.iteratee`, this function can be customized.\nexport default function toPath(path) {\n return isArray(path) ? path : [path];\n}\n_.toPath = toPath;\n","import _ from './underscore.js';\nimport './toPath.js';\n\n// Internal wrapper for `_.toPath` to enable minification.\n// Similar to `cb` for `_.iteratee`.\nexport default function toPath(path) {\n return _.toPath(path);\n}\n","// Internal function to obtain a nested property in `obj` along `path`.\nexport default function deepGet(obj, path) {\n var length = path.length;\n for (var i = 0; i < length; i++) {\n if (obj == null) return void 0;\n obj = obj[path[i]];\n }\n return length ? obj : void 0;\n}\n","import toPath from './_toPath.js';\nimport deepGet from './_deepGet.js';\nimport isUndefined from './isUndefined.js';\n\n// Get the value of the (deep) property on `path` from `object`.\n// If any property in `path` does not exist or if the value is\n// `undefined`, return `defaultValue` instead.\n// The `path` is normalized through `_.toPath`.\nexport default function get(object, path, defaultValue) {\n var value = deepGet(object, toPath(path));\n return isUndefined(value) ? defaultValue : value;\n}\n","import _has from './_has.js';\nimport toPath from './_toPath.js';\n\n// Shortcut function for checking if an object has a given property directly on\n// itself (in other words, not on a prototype). Unlike the internal `has`\n// function, this public version can also traverse nested properties.\nexport default function has(obj, path) {\n path = toPath(path);\n var length = path.length;\n for (var i = 0; i < length; i++) {\n var key = path[i];\n if (!_has(obj, key)) return false;\n obj = obj[key];\n }\n return !!length;\n}\n","// Keep the identity function around for default iteratees.\nexport default function identity(value) {\n return value;\n}\n","import extendOwn from './extendOwn.js';\nimport isMatch from './isMatch.js';\n\n// Returns a predicate for checking whether an object has a given set of\n// `key:value` pairs.\nexport default function matcher(attrs) {\n attrs = extendOwn({}, attrs);\n return function(obj) {\n return isMatch(obj, attrs);\n };\n}\n","import deepGet from './_deepGet.js';\nimport toPath from './_toPath.js';\n\n// Creates a function that, when passed an object, will traverse that object’s\n// properties down the given `path`, specified as an array of keys or indices.\nexport default function property(path) {\n path = toPath(path);\n return function(obj) {\n return deepGet(obj, path);\n };\n}\n","// Internal function that returns an efficient (for current engines) version\n// of the passed-in callback, to be repeatedly applied in other Underscore\n// functions.\nexport default function optimizeCb(func, context, argCount) {\n if (context === void 0) return func;\n switch (argCount == null ? 3 : argCount) {\n case 1: return function(value) {\n return func.call(context, value);\n };\n // The 2-argument case is omitted because we’re not using it.\n case 3: return function(value, index, collection) {\n return func.call(context, value, index, collection);\n };\n case 4: return function(accumulator, value, index, collection) {\n return func.call(context, accumulator, value, index, collection);\n };\n }\n return function() {\n return func.apply(context, arguments);\n };\n}\n","import identity from './identity.js';\nimport isFunction from './isFunction.js';\nimport isObject from './isObject.js';\nimport isArray from './isArray.js';\nimport matcher from './matcher.js';\nimport property from './property.js';\nimport optimizeCb from './_optimizeCb.js';\n\n// An internal function to generate callbacks that can be applied to each\n// element in a collection, returning the desired result — either `_.identity`,\n// an arbitrary callback, a property matcher, or a property accessor.\nexport default function baseIteratee(value, context, argCount) {\n if (value == null) return identity;\n if (isFunction(value)) return optimizeCb(value, context, argCount);\n if (isObject(value) && !isArray(value)) return matcher(value);\n return property(value);\n}\n","import _ from './underscore.js';\nimport baseIteratee from './_baseIteratee.js';\n\n// External wrapper for our callback generator. Users may customize\n// `_.iteratee` if they want additional predicate/iteratee shorthand styles.\n// This abstraction hides the internal-only `argCount` argument.\nexport default function iteratee(value, context) {\n return baseIteratee(value, context, Infinity);\n}\n_.iteratee = iteratee;\n","import _ from './underscore.js';\nimport baseIteratee from './_baseIteratee.js';\nimport iteratee from './iteratee.js';\n\n// The function we call internally to generate a callback. It invokes\n// `_.iteratee` if overridden, otherwise `baseIteratee`.\nexport default function cb(value, context, argCount) {\n if (_.iteratee !== iteratee) return _.iteratee(value, context);\n return baseIteratee(value, context, argCount);\n}\n","import cb from './_cb.js';\nimport keys from './keys.js';\n\n// Returns the results of applying the `iteratee` to each element of `obj`.\n// In contrast to `_.map` it returns an object.\nexport default function mapObject(obj, iteratee, context) {\n iteratee = cb(iteratee, context);\n var _keys = keys(obj),\n length = _keys.length,\n results = {};\n for (var index = 0; index < length; index++) {\n var currentKey = _keys[index];\n results[currentKey] = iteratee(obj[currentKey], currentKey, obj);\n }\n return results;\n}\n","// Predicate-generating function. Often useful outside of Underscore.\nexport default function noop(){}\n","import noop from './noop.js';\nimport get from './get.js';\n\n// Generates a function for a given object that returns a given property.\nexport default function propertyOf(obj) {\n if (obj == null) return noop;\n return function(path) {\n return get(obj, path);\n };\n}\n","import optimizeCb from './_optimizeCb.js';\n\n// Run a function **n** times.\nexport default function times(n, iteratee, context) {\n var accum = Array(Math.max(0, n));\n iteratee = optimizeCb(iteratee, context, 1);\n for (var i = 0; i < n; i++) accum[i] = iteratee(i);\n return accum;\n}\n","// Return a random integer between `min` and `max` (inclusive).\nexport default function random(min, max) {\n if (max == null) {\n max = min;\n min = 0;\n }\n return min + Math.floor(Math.random() * (max - min + 1));\n}\n","// A (possibly faster) way to get the current timestamp as an integer.\nexport default Date.now || function() {\n return new Date().getTime();\n};\n","import keys from './keys.js';\n\n// Internal helper to generate functions for escaping and unescaping strings\n// to/from HTML interpolation.\nexport default function createEscaper(map) {\n var escaper = function(match) {\n return map[match];\n };\n // Regexes for identifying a key that needs to be escaped.\n var source = '(?:' + keys(map).join('|') + ')';\n var testRegexp = RegExp(source);\n var replaceRegexp = RegExp(source, 'g');\n return function(string) {\n string = string == null ? '' : '' + string;\n return testRegexp.test(string) ? string.replace(replaceRegexp, escaper) : string;\n };\n}\n","// Internal list of HTML entities for escaping.\nexport default {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n \"'\": ''',\n '`': '`'\n};\n","import createEscaper from './_createEscaper.js';\nimport escapeMap from './_escapeMap.js';\n\n// Function for escaping strings to HTML interpolation.\nexport default createEscaper(escapeMap);\n","import createEscaper from './_createEscaper.js';\nimport unescapeMap from './_unescapeMap.js';\n\n// Function for unescaping strings from HTML interpolation.\nexport default createEscaper(unescapeMap);\n","import invert from './invert.js';\nimport escapeMap from './_escapeMap.js';\n\n// Internal list of HTML entities for unescaping.\nexport default invert(escapeMap);\n","import _ from './underscore.js';\n\n// By default, Underscore uses ERB-style template delimiters. Change the\n// following template settings to use alternative delimiters.\nexport default _.templateSettings = {\n evaluate: /<%([\\s\\S]+?)%>/g,\n interpolate: /<%=([\\s\\S]+?)%>/g,\n escape: /<%-([\\s\\S]+?)%>/g\n};\n","import defaults from './defaults.js';\nimport _ from './underscore.js';\nimport './templateSettings.js';\n\n// When customizing `_.templateSettings`, if you don't want to define an\n// interpolation, evaluation or escaping regex, we need one that is\n// guaranteed not to match.\nvar noMatch = /(.)^/;\n\n// Certain characters need to be escaped so that they can be put into a\n// string literal.\nvar escapes = {\n \"'\": \"'\",\n '\\\\': '\\\\',\n '\\r': 'r',\n '\\n': 'n',\n '\\u2028': 'u2028',\n '\\u2029': 'u2029'\n};\n\nvar escapeRegExp = /\\\\|'|\\r|\\n|\\u2028|\\u2029/g;\n\nfunction escapeChar(match) {\n return '\\\\' + escapes[match];\n}\n\n// In order to prevent third-party code injection through\n// `_.templateSettings.variable`, we test it against the following regular\n// expression. It is intentionally a bit more liberal than just matching valid\n// identifiers, but still prevents possible loopholes through defaults or\n// destructuring assignment.\nvar bareIdentifier = /^\\s*(\\w|\\$)+\\s*$/;\n\n// JavaScript micro-templating, similar to John Resig's implementation.\n// Underscore templating handles arbitrary delimiters, preserves whitespace,\n// and correctly escapes quotes within interpolated code.\n// NB: `oldSettings` only exists for backwards compatibility.\nexport default function template(text, settings, oldSettings) {\n if (!settings && oldSettings) settings = oldSettings;\n settings = defaults({}, settings, _.templateSettings);\n\n // Combine delimiters into one regular expression via alternation.\n var matcher = RegExp([\n (settings.escape || noMatch).source,\n (settings.interpolate || noMatch).source,\n (settings.evaluate || noMatch).source\n ].join('|') + '|$', 'g');\n\n // Compile the template source, escaping string literals appropriately.\n var index = 0;\n var source = \"__p+='\";\n text.replace(matcher, function(match, escape, interpolate, evaluate, offset) {\n source += text.slice(index, offset).replace(escapeRegExp, escapeChar);\n index = offset + match.length;\n\n if (escape) {\n source += \"'+\\n((__t=(\" + escape + \"))==null?'':_.escape(__t))+\\n'\";\n } else if (interpolate) {\n source += \"'+\\n((__t=(\" + interpolate + \"))==null?'':__t)+\\n'\";\n } else if (evaluate) {\n source += \"';\\n\" + evaluate + \"\\n__p+='\";\n }\n\n // Adobe VMs need the match returned to produce the correct offset.\n return match;\n });\n source += \"';\\n\";\n\n var argument = settings.variable;\n if (argument) {\n // Insure against third-party code injection. (CVE-2021-23358)\n if (!bareIdentifier.test(argument)) throw new Error(\n 'variable is not a bare identifier: ' + argument\n );\n } else {\n // If a variable is not specified, place data values in local scope.\n source = 'with(obj||{}){\\n' + source + '}\\n';\n argument = 'obj';\n }\n\n source = \"var __t,__p='',__j=Array.prototype.join,\" +\n \"print=function(){__p+=__j.call(arguments,'');};\\n\" +\n source + 'return __p;\\n';\n\n var render;\n try {\n render = new Function(argument, '_', source);\n } catch (e) {\n e.source = source;\n throw e;\n }\n\n var template = function(data) {\n return render.call(this, data, _);\n };\n\n // Provide the compiled source as a convenience for precompilation.\n template.source = 'function(' + argument + '){\\n' + source + '}';\n\n return template;\n}\n","import isFunction from './isFunction.js';\nimport toPath from './_toPath.js';\n\n// Traverses the children of `obj` along `path`. If a child is a function, it\n// is invoked with its parent as context. Returns the value of the final\n// child, or `fallback` if any child is undefined.\nexport default function result(obj, path, fallback) {\n path = toPath(path);\n var length = path.length;\n if (!length) {\n return isFunction(fallback) ? fallback.call(obj) : fallback;\n }\n for (var i = 0; i < length; i++) {\n var prop = obj == null ? void 0 : obj[path[i]];\n if (prop === void 0) {\n prop = fallback;\n i = length; // Ensure we don't continue iterating.\n }\n obj = isFunction(prop) ? prop.call(obj) : prop;\n }\n return obj;\n}\n","// Generate a unique integer id (unique within the entire client session).\n// Useful for temporary DOM ids.\nvar idCounter = 0;\nexport default function uniqueId(prefix) {\n var id = ++idCounter + '';\n return prefix ? prefix + id : id;\n}\n","import _ from './underscore.js';\n\n// Start chaining a wrapped Underscore object.\nexport default function chain(obj) {\n var instance = _(obj);\n instance._chain = true;\n return instance;\n}\n","import baseCreate from './_baseCreate.js';\nimport isObject from './isObject.js';\n\n// Internal function to execute `sourceFunc` bound to `context` with optional\n// `args`. Determines whether to execute a function as a constructor or as a\n// normal function.\nexport default function executeBound(sourceFunc, boundFunc, context, callingContext, args) {\n if (!(callingContext instanceof boundFunc)) return sourceFunc.apply(context, args);\n var self = baseCreate(sourceFunc.prototype);\n var result = sourceFunc.apply(self, args);\n if (isObject(result)) return result;\n return self;\n}\n","import restArguments from './restArguments.js';\nimport executeBound from './_executeBound.js';\nimport _ from './underscore.js';\n\n// Partially apply a function by creating a version that has had some of its\n// arguments pre-filled, without changing its dynamic `this` context. `_` acts\n// as a placeholder by default, allowing any combination of arguments to be\n// pre-filled. Set `_.partial.placeholder` for a custom placeholder argument.\nvar partial = restArguments(function(func, boundArgs) {\n var placeholder = partial.placeholder;\n var bound = function() {\n var position = 0, length = boundArgs.length;\n var args = Array(length);\n for (var i = 0; i < length; i++) {\n args[i] = boundArgs[i] === placeholder ? arguments[position++] : boundArgs[i];\n }\n while (position < arguments.length) args.push(arguments[position++]);\n return executeBound(func, bound, this, this, args);\n };\n return bound;\n});\n\npartial.placeholder = _;\nexport default partial;\n","import restArguments from './restArguments.js';\nimport isFunction from './isFunction.js';\nimport executeBound from './_executeBound.js';\n\n// Create a function bound to a given object (assigning `this`, and arguments,\n// optionally).\nexport default restArguments(function(func, context, args) {\n if (!isFunction(func)) throw new TypeError('Bind must be called on a function');\n var bound = restArguments(function(callArgs) {\n return executeBound(func, bound, context, this, args.concat(callArgs));\n });\n return bound;\n});\n","import createSizePropertyCheck from './_createSizePropertyCheck.js';\nimport getLength from './_getLength.js';\n\n// Internal helper for collection methods to determine whether a collection\n// should be iterated as an array or as an object.\n// Related: https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength\n// Avoids a very nasty iOS 8 JIT bug on ARM-64. #2094\nexport default createSizePropertyCheck(getLength);\n","import getLength from './_getLength.js';\nimport isArrayLike from './_isArrayLike.js';\nimport isArray from './isArray.js';\nimport isArguments from './isArguments.js';\n\n// Internal implementation of a recursive `flatten` function.\nexport default function flatten(input, depth, strict, output) {\n output = output || [];\n if (!depth && depth !== 0) {\n depth = Infinity;\n } else if (depth <= 0) {\n return output.concat(input);\n }\n var idx = output.length;\n for (var i = 0, length = getLength(input); i < length; i++) {\n var value = input[i];\n if (isArrayLike(value) && (isArray(value) || isArguments(value))) {\n // Flatten current level of array or arguments object.\n if (depth > 1) {\n flatten(value, depth - 1, strict, output);\n idx = output.length;\n } else {\n var j = 0, len = value.length;\n while (j < len) output[idx++] = value[j++];\n }\n } else if (!strict) {\n output[idx++] = value;\n }\n }\n return output;\n}\n","import restArguments from './restArguments.js';\nimport flatten from './_flatten.js';\nimport bind from './bind.js';\n\n// Bind a number of an object's methods to that object. Remaining arguments\n// are the method names to be bound. Useful for ensuring that all callbacks\n// defined on an object belong to it.\nexport default restArguments(function(obj, keys) {\n keys = flatten(keys, false, false);\n var index = keys.length;\n if (index < 1) throw new Error('bindAll must be passed function names');\n while (index--) {\n var key = keys[index];\n obj[key] = bind(obj[key], obj);\n }\n return obj;\n});\n","import has from './_has.js';\n\n// Memoize an expensive function by storing its results.\nexport default function memoize(func, hasher) {\n var memoize = function(key) {\n var cache = memoize.cache;\n var address = '' + (hasher ? hasher.apply(this, arguments) : key);\n if (!has(cache, address)) cache[address] = func.apply(this, arguments);\n return cache[address];\n };\n memoize.cache = {};\n return memoize;\n}\n","import restArguments from './restArguments.js';\n\n// Delays a function for the given number of milliseconds, and then calls\n// it with the arguments supplied.\nexport default restArguments(function(func, wait, args) {\n return setTimeout(function() {\n return func.apply(null, args);\n }, wait);\n});\n","import partial from './partial.js';\nimport delay from './delay.js';\nimport _ from './underscore.js';\n\n// Defers a function, scheduling it to run after the current call stack has\n// cleared.\nexport default partial(delay, _, 1);\n","import now from './now.js';\n\n// Returns a function, that, when invoked, will only be triggered at most once\n// during a given window of time. Normally, the throttled function will run\n// as much as it can, without ever going more than once per `wait` duration;\n// but if you'd like to disable the execution on the leading edge, pass\n// `{leading: false}`. To disable execution on the trailing edge, ditto.\nexport default function throttle(func, wait, options) {\n var timeout, context, args, result;\n var previous = 0;\n if (!options) options = {};\n\n var later = function() {\n previous = options.leading === false ? 0 : now();\n timeout = null;\n result = func.apply(context, args);\n if (!timeout) context = args = null;\n };\n\n var throttled = function() {\n var _now = now();\n if (!previous && options.leading === false) previous = _now;\n var remaining = wait - (_now - previous);\n context = this;\n args = arguments;\n if (remaining <= 0 || remaining > wait) {\n if (timeout) {\n clearTimeout(timeout);\n timeout = null;\n }\n previous = _now;\n result = func.apply(context, args);\n if (!timeout) context = args = null;\n } else if (!timeout && options.trailing !== false) {\n timeout = setTimeout(later, remaining);\n }\n return result;\n };\n\n throttled.cancel = function() {\n clearTimeout(timeout);\n previous = 0;\n timeout = context = args = null;\n };\n\n return throttled;\n}\n","import restArguments from './restArguments.js';\nimport now from './now.js';\n\n// When a sequence of calls of the returned function ends, the argument\n// function is triggered. The end of a sequence is defined by the `wait`\n// parameter. If `immediate` is passed, the argument function will be\n// triggered at the beginning of the sequence instead of at the end.\nexport default function debounce(func, wait, immediate) {\n var timeout, previous, args, result, context;\n\n var later = function() {\n var passed = now() - previous;\n if (wait > passed) {\n timeout = setTimeout(later, wait - passed);\n } else {\n timeout = null;\n if (!immediate) result = func.apply(context, args);\n // This check is needed because `func` can recursively invoke `debounced`.\n if (!timeout) args = context = null;\n }\n };\n\n var debounced = restArguments(function(_args) {\n context = this;\n args = _args;\n previous = now();\n if (!timeout) {\n timeout = setTimeout(later, wait);\n if (immediate) result = func.apply(context, args);\n }\n return result;\n });\n\n debounced.cancel = function() {\n clearTimeout(timeout);\n timeout = args = context = null;\n };\n\n return debounced;\n}\n","import partial from './partial.js';\n\n// Returns the first function passed as an argument to the second,\n// allowing you to adjust arguments, run code before and after, and\n// conditionally execute the original function.\nexport default function wrap(func, wrapper) {\n return partial(wrapper, func);\n}\n","// Returns a negated version of the passed-in predicate.\nexport default function negate(predicate) {\n return function() {\n return !predicate.apply(this, arguments);\n };\n}\n","// Returns a function that is the composition of a list of functions, each\n// consuming the return value of the function that follows.\nexport default function compose() {\n var args = arguments;\n var start = args.length - 1;\n return function() {\n var i = start;\n var result = args[start].apply(this, arguments);\n while (i--) result = args[i].call(this, result);\n return result;\n };\n}\n","// Returns a function that will only be executed on and after the Nth call.\nexport default function after(times, func) {\n return function() {\n if (--times < 1) {\n return func.apply(this, arguments);\n }\n };\n}\n","// Returns a function that will only be executed up to (but not including) the\n// Nth call.\nexport default function before(times, func) {\n var memo;\n return function() {\n if (--times > 0) {\n memo = func.apply(this, arguments);\n }\n if (times <= 1) func = null;\n return memo;\n };\n}\n","import partial from './partial.js';\nimport before from './before.js';\n\n// Returns a function that will be executed at most one time, no matter how\n// often you call it. Useful for lazy initialization.\nexport default partial(before, 2);\n","import cb from './_cb.js';\nimport keys from './keys.js';\n\n// Returns the first key on an object that passes a truth test.\nexport default function findKey(obj, predicate, context) {\n predicate = cb(predicate, context);\n var _keys = keys(obj), key;\n for (var i = 0, length = _keys.length; i < length; i++) {\n key = _keys[i];\n if (predicate(obj[key], key, obj)) return key;\n }\n}\n","import cb from './_cb.js';\nimport getLength from './_getLength.js';\n\n// Internal function to generate `_.findIndex` and `_.findLastIndex`.\nexport default function createPredicateIndexFinder(dir) {\n return function(array, predicate, context) {\n predicate = cb(predicate, context);\n var length = getLength(array);\n var index = dir > 0 ? 0 : length - 1;\n for (; index >= 0 && index < length; index += dir) {\n if (predicate(array[index], index, array)) return index;\n }\n return -1;\n };\n}\n","import createPredicateIndexFinder from './_createPredicateIndexFinder.js';\n\n// Returns the first index on an array-like that passes a truth test.\nexport default createPredicateIndexFinder(1);\n","import createPredicateIndexFinder from './_createPredicateIndexFinder.js';\n\n// Returns the last index on an array-like that passes a truth test.\nexport default createPredicateIndexFinder(-1);\n","import cb from './_cb.js';\nimport getLength from './_getLength.js';\n\n// Use a comparator function to figure out the smallest index at which\n// an object should be inserted so as to maintain order. Uses binary search.\nexport default function sortedIndex(array, obj, iteratee, context) {\n iteratee = cb(iteratee, context, 1);\n var value = iteratee(obj);\n var low = 0, high = getLength(array);\n while (low < high) {\n var mid = Math.floor((low + high) / 2);\n if (iteratee(array[mid]) < value) low = mid + 1; else high = mid;\n }\n return low;\n}\n","import getLength from './_getLength.js';\nimport { slice } from './_setup.js';\nimport isNaN from './isNaN.js';\n\n// Internal function to generate the `_.indexOf` and `_.lastIndexOf` functions.\nexport default function createIndexFinder(dir, predicateFind, sortedIndex) {\n return function(array, item, idx) {\n var i = 0, length = getLength(array);\n if (typeof idx == 'number') {\n if (dir > 0) {\n i = idx >= 0 ? idx : Math.max(idx + length, i);\n } else {\n length = idx >= 0 ? Math.min(idx + 1, length) : idx + length + 1;\n }\n } else if (sortedIndex && idx && length) {\n idx = sortedIndex(array, item);\n return array[idx] === item ? idx : -1;\n }\n if (item !== item) {\n idx = predicateFind(slice.call(array, i, length), isNaN);\n return idx >= 0 ? idx + i : -1;\n }\n for (idx = dir > 0 ? i : length - 1; idx >= 0 && idx < length; idx += dir) {\n if (array[idx] === item) return idx;\n }\n return -1;\n };\n}\n","import sortedIndex from './sortedIndex.js';\nimport findIndex from './findIndex.js';\nimport createIndexFinder from './_createIndexFinder.js';\n\n// Return the position of the first occurrence of an item in an array,\n// or -1 if the item is not included in the array.\n// If the array is large and already in sort order, pass `true`\n// for **isSorted** to use binary search.\nexport default createIndexFinder(1, findIndex, sortedIndex);\n","import findLastIndex from './findLastIndex.js';\nimport createIndexFinder from './_createIndexFinder.js';\n\n// Return the position of the last occurrence of an item in an array,\n// or -1 if the item is not included in the array.\nexport default createIndexFinder(-1, findLastIndex);\n","import isArrayLike from './_isArrayLike.js';\nimport findIndex from './findIndex.js';\nimport findKey from './findKey.js';\n\n// Return the first value which passes a truth test.\nexport default function find(obj, predicate, context) {\n var keyFinder = isArrayLike(obj) ? findIndex : findKey;\n var key = keyFinder(obj, predicate, context);\n if (key !== void 0 && key !== -1) return obj[key];\n}\n","import find from './find.js';\nimport matcher from './matcher.js';\n\n// Convenience version of a common use case of `_.find`: getting the first\n// object containing specific `key:value` pairs.\nexport default function findWhere(obj, attrs) {\n return find(obj, matcher(attrs));\n}\n","import optimizeCb from './_optimizeCb.js';\nimport isArrayLike from './_isArrayLike.js';\nimport keys from './keys.js';\n\n// The cornerstone for collection functions, an `each`\n// implementation, aka `forEach`.\n// Handles raw objects in addition to array-likes. Treats all\n// sparse array-likes as if they were dense.\nexport default function each(obj, iteratee, context) {\n iteratee = optimizeCb(iteratee, context);\n var i, length;\n if (isArrayLike(obj)) {\n for (i = 0, length = obj.length; i < length; i++) {\n iteratee(obj[i], i, obj);\n }\n } else {\n var _keys = keys(obj);\n for (i = 0, length = _keys.length; i < length; i++) {\n iteratee(obj[_keys[i]], _keys[i], obj);\n }\n }\n return obj;\n}\n","import cb from './_cb.js';\nimport isArrayLike from './_isArrayLike.js';\nimport keys from './keys.js';\n\n// Return the results of applying the iteratee to each element.\nexport default function map(obj, iteratee, context) {\n iteratee = cb(iteratee, context);\n var _keys = !isArrayLike(obj) && keys(obj),\n length = (_keys || obj).length,\n results = Array(length);\n for (var index = 0; index < length; index++) {\n var currentKey = _keys ? _keys[index] : index;\n results[index] = iteratee(obj[currentKey], currentKey, obj);\n }\n return results;\n}\n","import isArrayLike from './_isArrayLike.js';\nimport keys from './keys.js';\nimport optimizeCb from './_optimizeCb.js';\n\n// Internal helper to create a reducing function, iterating left or right.\nexport default function createReduce(dir) {\n // Wrap code that reassigns argument variables in a separate function than\n // the one that accesses `arguments.length` to avoid a perf hit. (#1991)\n var reducer = function(obj, iteratee, memo, initial) {\n var _keys = !isArrayLike(obj) && keys(obj),\n length = (_keys || obj).length,\n index = dir > 0 ? 0 : length - 1;\n if (!initial) {\n memo = obj[_keys ? _keys[index] : index];\n index += dir;\n }\n for (; index >= 0 && index < length; index += dir) {\n var currentKey = _keys ? _keys[index] : index;\n memo = iteratee(memo, obj[currentKey], currentKey, obj);\n }\n return memo;\n };\n\n return function(obj, iteratee, memo, context) {\n var initial = arguments.length >= 3;\n return reducer(obj, optimizeCb(iteratee, context, 4), memo, initial);\n };\n}\n","import createReduce from './_createReduce.js';\n\n// **Reduce** builds up a single result from a list of values, aka `inject`,\n// or `foldl`.\nexport default createReduce(1);\n","import createReduce from './_createReduce.js';\n\n// The right-associative version of reduce, also known as `foldr`.\nexport default createReduce(-1);\n","import cb from './_cb.js';\nimport each from './each.js';\n\n// Return all the elements that pass a truth test.\nexport default function filter(obj, predicate, context) {\n var results = [];\n predicate = cb(predicate, context);\n each(obj, function(value, index, list) {\n if (predicate(value, index, list)) results.push(value);\n });\n return results;\n}\n","import filter from './filter.js';\nimport negate from './negate.js';\nimport cb from './_cb.js';\n\n// Return all the elements for which a truth test fails.\nexport default function reject(obj, predicate, context) {\n return filter(obj, negate(cb(predicate)), context);\n}\n","import cb from './_cb.js';\nimport isArrayLike from './_isArrayLike.js';\nimport keys from './keys.js';\n\n// Determine whether all of the elements pass a truth test.\nexport default function every(obj, predicate, context) {\n predicate = cb(predicate, context);\n var _keys = !isArrayLike(obj) && keys(obj),\n length = (_keys || obj).length;\n for (var index = 0; index < length; index++) {\n var currentKey = _keys ? _keys[index] : index;\n if (!predicate(obj[currentKey], currentKey, obj)) return false;\n }\n return true;\n}\n","import cb from './_cb.js';\nimport isArrayLike from './_isArrayLike.js';\nimport keys from './keys.js';\n\n// Determine if at least one element in the object passes a truth test.\nexport default function some(obj, predicate, context) {\n predicate = cb(predicate, context);\n var _keys = !isArrayLike(obj) && keys(obj),\n length = (_keys || obj).length;\n for (var index = 0; index < length; index++) {\n var currentKey = _keys ? _keys[index] : index;\n if (predicate(obj[currentKey], currentKey, obj)) return true;\n }\n return false;\n}\n","import isArrayLike from './_isArrayLike.js';\nimport values from './values.js';\nimport indexOf from './indexOf.js';\n\n// Determine if the array or object contains a given item (using `===`).\nexport default function contains(obj, item, fromIndex, guard) {\n if (!isArrayLike(obj)) obj = values(obj);\n if (typeof fromIndex != 'number' || guard) fromIndex = 0;\n return indexOf(obj, item, fromIndex) >= 0;\n}\n","import restArguments from './restArguments.js';\nimport isFunction from './isFunction.js';\nimport map from './map.js';\nimport deepGet from './_deepGet.js';\nimport toPath from './_toPath.js';\n\n// Invoke a method (with arguments) on every item in a collection.\nexport default restArguments(function(obj, path, args) {\n var contextPath, func;\n if (isFunction(path)) {\n func = path;\n } else {\n path = toPath(path);\n contextPath = path.slice(0, -1);\n path = path[path.length - 1];\n }\n return map(obj, function(context) {\n var method = func;\n if (!method) {\n if (contextPath && contextPath.length) {\n context = deepGet(context, contextPath);\n }\n if (context == null) return void 0;\n method = context[path];\n }\n return method == null ? method : method.apply(context, args);\n });\n});\n","import map from './map.js';\nimport property from './property.js';\n\n// Convenience version of a common use case of `_.map`: fetching a property.\nexport default function pluck(obj, key) {\n return map(obj, property(key));\n}\n","import filter from './filter.js';\nimport matcher from './matcher.js';\n\n// Convenience version of a common use case of `_.filter`: selecting only\n// objects containing specific `key:value` pairs.\nexport default function where(obj, attrs) {\n return filter(obj, matcher(attrs));\n}\n","import isArrayLike from './_isArrayLike.js';\nimport values from './values.js';\nimport cb from './_cb.js';\nimport each from './each.js';\n\n// Return the maximum element (or element-based computation).\nexport default function max(obj, iteratee, context) {\n var result = -Infinity, lastComputed = -Infinity,\n value, computed;\n if (iteratee == null || (typeof iteratee == 'number' && typeof obj[0] != 'object' && obj != null)) {\n obj = isArrayLike(obj) ? obj : values(obj);\n for (var i = 0, length = obj.length; i < length; i++) {\n value = obj[i];\n if (value != null && value > result) {\n result = value;\n }\n }\n } else {\n iteratee = cb(iteratee, context);\n each(obj, function(v, index, list) {\n computed = iteratee(v, index, list);\n if (computed > lastComputed || (computed === -Infinity && result === -Infinity)) {\n result = v;\n lastComputed = computed;\n }\n });\n }\n return result;\n}\n","import isArrayLike from './_isArrayLike.js';\nimport values from './values.js';\nimport cb from './_cb.js';\nimport each from './each.js';\n\n// Return the minimum element (or element-based computation).\nexport default function min(obj, iteratee, context) {\n var result = Infinity, lastComputed = Infinity,\n value, computed;\n if (iteratee == null || (typeof iteratee == 'number' && typeof obj[0] != 'object' && obj != null)) {\n obj = isArrayLike(obj) ? obj : values(obj);\n for (var i = 0, length = obj.length; i < length; i++) {\n value = obj[i];\n if (value != null && value < result) {\n result = value;\n }\n }\n } else {\n iteratee = cb(iteratee, context);\n each(obj, function(v, index, list) {\n computed = iteratee(v, index, list);\n if (computed < lastComputed || (computed === Infinity && result === Infinity)) {\n result = v;\n lastComputed = computed;\n }\n });\n }\n return result;\n}\n","import isArray from './isArray.js';\nimport { slice } from './_setup.js';\nimport isString from './isString.js';\nimport isArrayLike from './_isArrayLike.js';\nimport map from './map.js';\nimport identity from './identity.js';\nimport values from './values.js';\n\n// Safely create a real, live array from anything iterable.\nvar reStrSymbol = /[^\\ud800-\\udfff]|[\\ud800-\\udbff][\\udc00-\\udfff]|[\\ud800-\\udfff]/g;\nexport default function toArray(obj) {\n if (!obj) return [];\n if (isArray(obj)) return slice.call(obj);\n if (isString(obj)) {\n // Keep surrogate pair characters together.\n return obj.match(reStrSymbol);\n }\n if (isArrayLike(obj)) return map(obj, identity);\n return values(obj);\n}\n","import isArrayLike from './_isArrayLike.js';\nimport values from './values.js';\nimport getLength from './_getLength.js';\nimport random from './random.js';\nimport toArray from './toArray.js';\n\n// Sample **n** random values from a collection using the modern version of the\n// [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher–Yates_shuffle).\n// If **n** is not specified, returns a single random element.\n// The internal `guard` argument allows it to work with `_.map`.\nexport default function sample(obj, n, guard) {\n if (n == null || guard) {\n if (!isArrayLike(obj)) obj = values(obj);\n return obj[random(obj.length - 1)];\n }\n var sample = toArray(obj);\n var length = getLength(sample);\n n = Math.max(Math.min(n, length), 0);\n var last = length - 1;\n for (var index = 0; index < n; index++) {\n var rand = random(index, last);\n var temp = sample[index];\n sample[index] = sample[rand];\n sample[rand] = temp;\n }\n return sample.slice(0, n);\n}\n","import sample from './sample.js';\n\n// Shuffle a collection.\nexport default function shuffle(obj) {\n return sample(obj, Infinity);\n}\n","import cb from './_cb.js';\nimport pluck from './pluck.js';\nimport map from './map.js';\n\n// Sort the object's values by a criterion produced by an iteratee.\nexport default function sortBy(obj, iteratee, context) {\n var index = 0;\n iteratee = cb(iteratee, context);\n return pluck(map(obj, function(value, key, list) {\n return {\n value: value,\n index: index++,\n criteria: iteratee(value, key, list)\n };\n }).sort(function(left, right) {\n var a = left.criteria;\n var b = right.criteria;\n if (a !== b) {\n if (a > b || a === void 0) return 1;\n if (a < b || b === void 0) return -1;\n }\n return left.index - right.index;\n }), 'value');\n}\n","import cb from './_cb.js';\nimport each from './each.js';\n\n// An internal function used for aggregate \"group by\" operations.\nexport default function group(behavior, partition) {\n return function(obj, iteratee, context) {\n var result = partition ? [[], []] : {};\n iteratee = cb(iteratee, context);\n each(obj, function(value, index) {\n var key = iteratee(value, index, obj);\n behavior(result, value, key);\n });\n return result;\n };\n}\n","import group from './_group.js';\nimport has from './_has.js';\n\n// Groups the object's values by a criterion. Pass either a string attribute\n// to group by, or a function that returns the criterion.\nexport default group(function(result, value, key) {\n if (has(result, key)) result[key].push(value); else result[key] = [value];\n});\n","import group from './_group.js';\n\n// Indexes the object's values by a criterion, similar to `_.groupBy`, but for\n// when you know that your index values will be unique.\nexport default group(function(result, value, key) {\n result[key] = value;\n});\n","import group from './_group.js';\nimport has from './_has.js';\n\n// Counts instances of an object that group by a certain criterion. Pass\n// either a string attribute to count by, or a function that returns the\n// criterion.\nexport default group(function(result, value, key) {\n if (has(result, key)) result[key]++; else result[key] = 1;\n});\n","import group from './_group.js';\n\n// Split a collection into two arrays: one whose elements all pass the given\n// truth test, and one whose elements all do not pass the truth test.\nexport default group(function(result, value, pass) {\n result[pass ? 0 : 1].push(value);\n}, true);\n","import isArrayLike from './_isArrayLike.js';\nimport keys from './keys.js';\n\n// Return the number of elements in a collection.\nexport default function size(obj) {\n if (obj == null) return 0;\n return isArrayLike(obj) ? obj.length : keys(obj).length;\n}\n","// Internal `_.pick` helper function to determine whether `key` is an enumerable\n// property name of `obj`.\nexport default function keyInObj(value, key, obj) {\n return key in obj;\n}\n","import restArguments from './restArguments.js';\nimport isFunction from './isFunction.js';\nimport optimizeCb from './_optimizeCb.js';\nimport allKeys from './allKeys.js';\nimport keyInObj from './_keyInObj.js';\nimport flatten from './_flatten.js';\n\n// Return a copy of the object only containing the allowed properties.\nexport default restArguments(function(obj, keys) {\n var result = {}, iteratee = keys[0];\n if (obj == null) return result;\n if (isFunction(iteratee)) {\n if (keys.length > 1) iteratee = optimizeCb(iteratee, keys[1]);\n keys = allKeys(obj);\n } else {\n iteratee = keyInObj;\n keys = flatten(keys, false, false);\n obj = Object(obj);\n }\n for (var i = 0, length = keys.length; i < length; i++) {\n var key = keys[i];\n var value = obj[key];\n if (iteratee(value, key, obj)) result[key] = value;\n }\n return result;\n});\n","import restArguments from './restArguments.js';\nimport isFunction from './isFunction.js';\nimport negate from './negate.js';\nimport map from './map.js';\nimport flatten from './_flatten.js';\nimport contains from './contains.js';\nimport pick from './pick.js';\n\n// Return a copy of the object without the disallowed properties.\nexport default restArguments(function(obj, keys) {\n var iteratee = keys[0], context;\n if (isFunction(iteratee)) {\n iteratee = negate(iteratee);\n if (keys.length > 1) context = keys[1];\n } else {\n keys = map(flatten(keys, false, false), String);\n iteratee = function(value, key) {\n return !contains(keys, key);\n };\n }\n return pick(obj, iteratee, context);\n});\n","import { slice } from './_setup.js';\n\n// Returns everything but the last entry of the array. Especially useful on\n// the arguments object. Passing **n** will return all the values in\n// the array, excluding the last N.\nexport default function initial(array, n, guard) {\n return slice.call(array, 0, Math.max(0, array.length - (n == null || guard ? 1 : n)));\n}\n","import initial from './initial.js';\n\n// Get the first element of an array. Passing **n** will return the first N\n// values in the array. The **guard** check allows it to work with `_.map`.\nexport default function first(array, n, guard) {\n if (array == null || array.length < 1) return n == null || guard ? void 0 : [];\n if (n == null || guard) return array[0];\n return initial(array, array.length - n);\n}\n","import { slice } from './_setup.js';\n\n// Returns everything but the first entry of the `array`. Especially useful on\n// the `arguments` object. Passing an **n** will return the rest N values in the\n// `array`.\nexport default function rest(array, n, guard) {\n return slice.call(array, n == null || guard ? 1 : n);\n}\n","import rest from './rest.js';\n\n// Get the last element of an array. Passing **n** will return the last N\n// values in the array.\nexport default function last(array, n, guard) {\n if (array == null || array.length < 1) return n == null || guard ? void 0 : [];\n if (n == null || guard) return array[array.length - 1];\n return rest(array, Math.max(0, array.length - n));\n}\n","import filter from './filter.js';\n\n// Trim out all falsy values from an array.\nexport default function compact(array) {\n return filter(array, Boolean);\n}\n","import _flatten from './_flatten.js';\n\n// Flatten out an array, either recursively (by default), or up to `depth`.\n// Passing `true` or `false` as `depth` means `1` or `Infinity`, respectively.\nexport default function flatten(array, depth) {\n return _flatten(array, depth, false);\n}\n","import restArguments from './restArguments.js';\nimport flatten from './_flatten.js';\nimport filter from './filter.js';\nimport contains from './contains.js';\n\n// Take the difference between one array and a number of other arrays.\n// Only the elements present in just the first array will remain.\nexport default restArguments(function(array, rest) {\n rest = flatten(rest, true, true);\n return filter(array, function(value){\n return !contains(rest, value);\n });\n});\n","import restArguments from './restArguments.js';\nimport difference from './difference.js';\n\n// Return a version of the array that does not contain the specified value(s).\nexport default restArguments(function(array, otherArrays) {\n return difference(array, otherArrays);\n});\n","import isBoolean from './isBoolean.js';\nimport cb from './_cb.js';\nimport getLength from './_getLength.js';\nimport contains from './contains.js';\n\n// Produce a duplicate-free version of the array. If the array has already\n// been sorted, you have the option of using a faster algorithm.\n// The faster algorithm will not work with an iteratee if the iteratee\n// is not a one-to-one function, so providing an iteratee will disable\n// the faster algorithm.\nexport default function uniq(array, isSorted, iteratee, context) {\n if (!isBoolean(isSorted)) {\n context = iteratee;\n iteratee = isSorted;\n isSorted = false;\n }\n if (iteratee != null) iteratee = cb(iteratee, context);\n var result = [];\n var seen = [];\n for (var i = 0, length = getLength(array); i < length; i++) {\n var value = array[i],\n computed = iteratee ? iteratee(value, i, array) : value;\n if (isSorted && !iteratee) {\n if (!i || seen !== computed) result.push(value);\n seen = computed;\n } else if (iteratee) {\n if (!contains(seen, computed)) {\n seen.push(computed);\n result.push(value);\n }\n } else if (!contains(result, value)) {\n result.push(value);\n }\n }\n return result;\n}\n","import restArguments from './restArguments.js';\nimport uniq from './uniq.js';\nimport flatten from './_flatten.js';\n\n// Produce an array that contains the union: each distinct element from all of\n// the passed-in arrays.\nexport default restArguments(function(arrays) {\n return uniq(flatten(arrays, true, true));\n});\n","import getLength from './_getLength.js';\nimport contains from './contains.js';\n\n// Produce an array that contains every item shared between all the\n// passed-in arrays.\nexport default function intersection(array) {\n var result = [];\n var argsLength = arguments.length;\n for (var i = 0, length = getLength(array); i < length; i++) {\n var item = array[i];\n if (contains(result, item)) continue;\n var j;\n for (j = 1; j < argsLength; j++) {\n if (!contains(arguments[j], item)) break;\n }\n if (j === argsLength) result.push(item);\n }\n return result;\n}\n","import max from './max.js';\nimport getLength from './_getLength.js';\nimport pluck from './pluck.js';\n\n// Complement of zip. Unzip accepts an array of arrays and groups\n// each array's elements on shared indices.\nexport default function unzip(array) {\n var length = (array && max(array, getLength).length) || 0;\n var result = Array(length);\n\n for (var index = 0; index < length; index++) {\n result[index] = pluck(array, index);\n }\n return result;\n}\n","import restArguments from './restArguments.js';\nimport unzip from './unzip.js';\n\n// Zip together multiple lists into a single array -- elements that share\n// an index go together.\nexport default restArguments(unzip);\n","import getLength from './_getLength.js';\n\n// Converts lists into objects. Pass either a single array of `[key, value]`\n// pairs, or two parallel arrays of the same length -- one of keys, and one of\n// the corresponding values. Passing by pairs is the reverse of `_.pairs`.\nexport default function object(list, values) {\n var result = {};\n for (var i = 0, length = getLength(list); i < length; i++) {\n if (values) {\n result[list[i]] = values[i];\n } else {\n result[list[i][0]] = list[i][1];\n }\n }\n return result;\n}\n","// Generate an integer Array containing an arithmetic progression. A port of\n// the native Python `range()` function. See\n// [the Python documentation](https://docs.python.org/library/functions.html#range).\nexport default function range(start, stop, step) {\n if (stop == null) {\n stop = start || 0;\n start = 0;\n }\n if (!step) {\n step = stop < start ? -1 : 1;\n }\n\n var length = Math.max(Math.ceil((stop - start) / step), 0);\n var range = Array(length);\n\n for (var idx = 0; idx < length; idx++, start += step) {\n range[idx] = start;\n }\n\n return range;\n}\n","import { slice } from './_setup.js';\n\n// Chunk a single array into multiple arrays, each containing `count` or fewer\n// items.\nexport default function chunk(array, count) {\n if (count == null || count < 1) return [];\n var result = [];\n var i = 0, length = array.length;\n while (i < length) {\n result.push(slice.call(array, i, i += count));\n }\n return result;\n}\n","import _ from './underscore.js';\n\n// Helper function to continue chaining intermediate results.\nexport default function chainResult(instance, obj) {\n return instance._chain ? _(obj).chain() : obj;\n}\n","import _ from './underscore.js';\nimport each from './each.js';\nimport functions from './functions.js';\nimport { push } from './_setup.js';\nimport chainResult from './_chainResult.js';\n\n// Add your own custom functions to the Underscore object.\nexport default function mixin(obj) {\n each(functions(obj), function(name) {\n var func = _[name] = obj[name];\n _.prototype[name] = function() {\n var args = [this._wrapped];\n push.apply(args, arguments);\n return chainResult(this, func.apply(_, args));\n };\n });\n return _;\n}\n","import _ from './underscore.js';\nimport each from './each.js';\nimport { ArrayProto } from './_setup.js';\nimport chainResult from './_chainResult.js';\n\n// Add all mutator `Array` functions to the wrapper.\neach(['pop', 'push', 'reverse', 'shift', 'sort', 'splice', 'unshift'], function(name) {\n var method = ArrayProto[name];\n _.prototype[name] = function() {\n var obj = this._wrapped;\n if (obj != null) {\n method.apply(obj, arguments);\n if ((name === 'shift' || name === 'splice') && obj.length === 0) {\n delete obj[0];\n }\n }\n return chainResult(this, obj);\n };\n});\n\n// Add all accessor `Array` functions to the wrapper.\neach(['concat', 'join', 'slice'], function(name) {\n var method = ArrayProto[name];\n _.prototype[name] = function() {\n var obj = this._wrapped;\n if (obj != null) obj = method.apply(obj, arguments);\n return chainResult(this, obj);\n };\n});\n\nexport default _;\n","// Default Export\n// ==============\n// In this module, we mix our bundled exports into the `_` object and export\n// the result. This is analogous to setting `module.exports = _` in CommonJS.\n// Hence, this module is also the entry point of our UMD bundle and the package\n// entry point for CommonJS and AMD users. In other words, this is (the source\n// of) the module you are interfacing with when you do any of the following:\n//\n// ```js\n// // CommonJS\n// var _ = require('underscore');\n//\n// // AMD\n// define(['underscore'], function(_) {...});\n//\n// // UMD in the browser\n// // _ is available as a global variable\n// ```\nimport * as allExports from './index.js';\nimport { mixin } from './index.js';\n\n// Add all of the Underscore functions to the wrapper object.\nvar _ = mixin(allExports);\n// Legacy Node.js API.\n_._ = _;\n// Export the Underscore API.\nexport default _;\n","import {Component} from 'react';\n\nclass SearchItem extends Component{\n\tconstructor(props){\n\t\tsuper();\n\t\tthis.state = {\n\t\t\tover: props.isOver,\n\t\t};\n\t}\n\tcomponentWillReceiveProps(nextProps){\n\t\tthis.state.over = nextProps.isOver;\n\t}\n\trender(){\n\t\tconst {display_name} = this.props.author;\n\t\treturn(\n\t\t\t<div\n\t\t\t\tonMouseOver={this.onMouseOver.bind(this, true)}\n\t\t\t\tonMouseOut={this.onMouseOver.bind(this, false)}\n\t\t\t\tonClick={this.onClick.bind(this)}\n\t\t\t\tclassName={`additional-authors-search-item ${(this.state.over)? 'is-over': ''}`}\n\t\t\t>\n\t\t\t\t{display_name}\n\t\t\t</div>\n\t\t)\n\t}\n\tonMouseOver(is_over){\n\t\tthis.setState({over: is_over});\n\t}\n\tonClick(){\n\t\tthis.props.onSelect(this.props.author);\n\t}\n}\n\n/**\n * export component to public\n */\nexport default SearchItem;","import {Component} from 'react';\n\nclass NewItem extends Component{\n\tconstructor(props){\n\t\tsuper();\n\t\tthis.state = {\n\t\t\tover: props.isOver,\n\t\t};\n\t}\n\tcomponentWillReceiveProps(nextProps){\n\t\tthis.state.over = nextProps.isOver;\n\t}\n\trender(){\n\t\treturn(\n\t\t\t<div\n\t\t\t\tonMouseOver={this.onMouseOver.bind(this, true)}\n\t\t\t\tonMouseOut={this.onMouseOver.bind(this, false)}\n\t\t\t\tonClick={this.onClick.bind(this)}\n\t\t\t\tclassName={`additional-authors-new-item ${(this.state.over)? 'is-over': ''}`}\n\t\t\t>\n\t\t\t\tNew user \"{this.props.name}\"\n\t\t\t</div>\n\t\t)\n\t}\n\tonMouseOver(is_over){\n\t\tthis.setState({over: is_over});\n\t}\n\tonClick(){\n\t\tthis.props.onSelect(this.props.name);\n\t}\n}\n\n/**\n * export component to public\n */\nexport default NewItem;","import {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport SearchItem from './search-item.jsx';\nimport NewItem from './new-item.jsx';\n\nclass Search extends Component {\n\n\t/**\n\t * ------------------------------------------------\n\t * lifecycle\n\t * ------------------------------------------------\n\t */\n\tconstructor(props) {\n\t\tsuper(props);\n\t\tthis.state = {\n\t\t\tquery: \"\",\n\t\t\tover_index: 0,\n\t\t\tsearch_result: [],\n\t\t\tfocus: false,\n\t\t}\n\t}\n\n\t/**\n\t * ------------------------------------------------\n\t * rendering\n\t * ------------------------------------------------\n\t */\n\trender() {\n\t\tconst {query} = this.state;\n\t\treturn (\n\t\t\t<div\n\t\t\t\tclassName=\"additional-authors-search\"\n\t\t\t onKeyUp={this.onKeyUp.bind(this)}\n\t\t\t>\n\t\t\t\t<label>\n\t\t\t\t\t{this.props.languages.label}\n\t\t\t\t\t<br />\n\t\t\t\t\t<input\n\t\t\t\t\t\tclassName=\"additional-authors-search__input\"\n\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\tvalue={query}\n\t\t\t\t\t\tonKeyDown={this.onKeyDown.bind(this)}\n\t\t\t\t\t onChange={this.onChange.bind(this)}\n\t\t\t\t\t onFocus={this.onFocusSearch.bind(this, true)}\n\t\t\t\t\t onBlur={this.onFocusSearch.bind(this, false)}\n\t\t\t\t\t/>\n\t\t\t\t</label>\n\t\t\t\t{this.renderList()}\n\t\t\t</div>\n\t\t)\n\t}\n\trenderList(){\n\t\tconst {selected} = this.props;\n\t\tconst {over_index, search_result, focus, query} = this.state;\n\t\tif(focus){\n\t\t\tconst newItem = (query !== \"\") ? (<NewItem\n\t\t\tname={query}\n\t\t\tisOver={(over_index === search_result.length)}\n\t\t\tonSelect={this.onNewItem.bind(this)}\n\t\t\t/>): null;\n\t\t\treturn (\n\t\t\t\t<div\n\t\t\t\t\tclassName=\"additional-authors-search-list\"\n\t\t\t\t>\n\t\t\t\t\t{search_result.map((item, index)=>{\n\t\t\t\t\t\treturn <SearchItem\n\t\t\t\t\t\t\tkey={item.ID}\n\t\t\t\t\t\t\tauthor={item}\n\t\t\t\t\t\t\tonSelect={this.onSelect.bind(this, item)}\n\t\t\t\t\t\t\tisOver={(over_index === index)}\n\t\t\t\t\t\t/>\n\t\t\t\t\t})}\n\t\t\t\t\t{newItem}\n\t\t\t\t</div>\n\t\t\t)\n\t\t}\n\t\treturn null;\n\t}\n\n\t/**\n\t * ------------------------------------------------\n\t * events\n\t * ------------------------------------------------\n\t */\n\tonChange(e){\n\n\t\tif(e) this.state.query = e.target.value;\n\n\t\tconst {users, selected} = this.props;\n\t\tconst {query} = this.state;\n\n\t\tlet search_result = [];\n\n\t\tif(query !== ''){\n\t\t\tfor(let user of users){\n\t\t\t\tif(user.display_name.toLowerCase().indexOf(query.toLowerCase()) > -1){\n\t\t\t\t\tif(selected.indexOf(user.ID+\"\") >= 0 || selected.indexOf(parseInt(user.ID)) >= 0) continue;\n\t\t\t\t\tsearch_result.unshift(user);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tsearch_result = [];\n\t\t}\n\n\t\tthis.setState({over_index: 0, search_result: search_result});\n\t}\n\n\tonFocusSearch(focus){\n\t\tclearTimeout(this.closeTimeout);\n\t\tif(!focus){\n\t\t\t// just enough time to check if list item was clicked\n\t\t\tthis.closeTimeout = setTimeout(()=>{\n\t\t\t\tthis.setState({focus: focus});\n\t\t\t},600);\n\t\t\treturn;\n\t\t}\n\t\tthis.setState({focus: focus});\n\t}\n\tonSelect(user){\n\t\tthis.props.onSelect(user);\n\t\tthis.setState({focus: false});\n\t\tthis.onChange();\n\t}\n\tonNewItem(name){\n\t\tif(name === \"\") return;\n\t\tthis.props.onSelect({\n\t\t\tID: 0,\n\t\t\tdisplay_name: name,\n\t\t\tuser_nicename: \"-\",\n\t\t});\n\t\tthis.setState({query:\"\", search_result:[] });\n\t}\n\tonKeyDown(e){\n\t\tconst ENTER = 13;\n\t\tif(ENTER === e.keyCode && this.state.focus){\n\t\t\te.preventDefault();\n\t\t\tif(typeof this.state.search_result[this.state.over_index] != typeof undefined ){\n\t\t\t\tthis.onSelect(this.state.search_result[this.state.over_index]);\n\t\t\t}\n\t\t} else {\n\t\t\tthis.setState({focus: true});\n\t\t}\n\t}\n\tonKeyUp(e){\n\n\t\tif(!this.state.focus) return;\n\n\t\tconst ESC = 27;\n\t\tconst UP = 38;\n\t\tconst DOWN = 40;\n\n\t\tif(ESC === e.keyCode){\n\t\t\tthis.setState({search_result: []});\n\t\t\treturn;\n\t\t}\n\t\telse if(UP === e.keyCode){\n\t\t\te.preventDefault();\n\t\t\tthis.state.over_index--;\n\t\t} else if(DOWN === e.keyCode){\n\t\t\te.preventDefault();\n\t\t\tthis.state.over_index++;\n\t\t}\n\t\tif(this.state.over_index > this.state.search_result.length){\n\t\t\tthis.state.over_index = this.state.search_result.length;\n\t\t} else if(this.state.over_index < 0) {\n\t\t\tthis.state.over_index = 0;\n\t\t}\n\n\t\tthis.setState({over_index: this.state.over_index });\n\t}\n\n\t/**\n\t * ------------------------------------------------\n\t * other functions\n\t * ------------------------------------------------\n\t */\n}\n\n/**\n * property defaults\n */\nSearch.defaultProps = {\n\tusers: [],\n};\n\n/**\n * define property types\n */\nSearch.propTypes = {\n\tusers: PropTypes.array.isRequired,\n\tselected: PropTypes.array.isRequired,\n\tlanguages: PropTypes.object.isRequired,\n\tonSelect: PropTypes.func.isRequired,\n};\n\n/**\n * export component to public\n */\nexport default Search;\n","import PropTypes from 'prop-types';\n\nconst Delete = ({onClick}) => {\n\treturn (\n\t\t<span\n\t\t\tclassName=\"author-item__delete\"\n\t\t\tonClick={onClick}\n\t\t>\n\t\t\t×\n\t\t</span>\n\t)\n}\n\nconst ProfileLink = ({author}) => {\n\tconst {ID,display_name} = author;\n\tif(ID > 0){\n\t\treturn <a href={`/wp-admin/user-edit.php?user_id=${ID}`} target=\"_blank\">{display_name}</a>\n\t}\n\treturn display_name\n}\n\nconst AuthorItem = ({author, isMainAuthor, index, onUnselect, onChangePosition})=>{\n\n\treturn (\n\t\t<div\n\t\t\tclassName={`author-item${(isMainAuthor)?\" is-main-author\":\"\"}${(author.ID < 0)?\" is-new-author\":\"\"}`}\n\t\t>\n\t\t\t\t<span className=\"autor-item__name\">\n\t\t\t\t\t<ProfileLink author={author} />\n\t\t\t\t\t<span className=\"author-item__nicename\">{author.user_nicename}</span>\n\t\t\t\t</span>\n\n\t\t\t{isMainAuthor? null : <Delete onClick={onUnselect} /> }\n\n\t\t\t<span\n\t\t\t\tclassName=\"author-item__move author-item__up\"\n\t\t\t\tonClick={()=>onChangePosition(index-1)}\n\t\t\t>\n\t\t\t\t\t▲\n\t\t\t\t</span>\n\t\t\t<span\n\t\t\t\tclassName=\"author-item__move author-item__down\"\n\t\t\t\tonClick={()=>onChangePosition(index+1)}\n\t\t\t>\n\t\t\t\t\t▼\n\t\t\t\t</span>\n\t\t\t<input type=\"hidden\" name=\"additional_authors[ids][]\" value={author.ID} />\n\t\t\t<input type=\"hidden\" name=\"additional_authors[names][]\" value={author.display_name} />\n\t\t</div>\n\t)\n\n}\n\n/**\n * property defaults\n */\nAuthorItem.defaultProps = {\n\tauthor: {\n\t\tID: -1,\n\t\tdisplay_name: \"\",\n\t\tuser_login: \"\",\n\t},\n\tclassName: \"\",\n};\n\n/**\n * define property types\n */\nAuthorItem.propTypes = {\n\tauthor: PropTypes.object.isRequired,\n\tindex: PropTypes.number.isRequired,\n\tonUnselect: PropTypes.func.isRequired,\n\tonChangePosition: PropTypes.func.isRequired,\n\tisMainAuthor: PropTypes.bool.isRequired,\n};\n\n/**\n * export component to public\n */\nexport default AuthorItem;","import {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport _ from 'underscore';\n\nimport Search from './search.jsx';\nimport AuthorItem from './author-item.jsx';\n\nclass MetaBox extends Component {\n\t\n\t/**\n\t * ------------------------------------------------\n\t * lifecycle\n\t * ------------------------------------------------\n\t */\n\tconstructor(props) {\n\t\tsuper(props);\n\t\t\n\t\tthis.state = {\n\t\t\tusers: props.users,\n\t\t\tselected: this.props.selected,\n\t\t\tnew_user_id: -1,\n\t\t};\n\t\t\n\t}\n\n\tcomponentDidMount(){\n\t\tthis.dispatchChanged();\n\t\tthis.getMainUserControl();\n\t}\n\t\n\t/**\n\t * ------------------------------------------------\n\t * rendering\n\t * ------------------------------------------------\n\t */\n\trender() {\n\t\tconst {language, isGutenbergActive} = this.props;\n\t\tconst {selected, users, new_users, main_author} = this.state;\n\t\tlet gutenbergInfo = null;\n\t\tif(isGutenbergActive){\n\t\t\tgutenbergInfo = <input type=\"hidden\" name=\"additional_authors_is_gutenberg\" value=\"it-is\" />\n\t\t}\n\n\t\tconst selectedIds = selected.map(u=>u.ID);\n\n\t\treturn (\n\t\t\t<div className=\"additional-authors\">\n\t\t\t\t{gutenbergInfo}\n\t\t\t\t<Search\n\t\t\t\t\tusers={users}\n\t\t\t\t\tselected={selected}\n\t\t\t\t\tlanguages={language}\n\t\t\t\t onSelect={this.onSelect.bind(this)}\n\t\t\t\t/>\n\t\t\t\t\n\t\t\t\t<hr/>\n\t\t\t\t\n\t\t\t\t<p><i>{language.description}</i></p>\n\n\t\t\t\t<div>\n\n\t\t\t\t\t{selected.map((id, index)=>{\n\t\t\t\t\t\tif(isGutenbergActive && index === 0) return null;\n\t\t\t\t\t\tfor(const key in users){\n\t\t\t\t\t\t\tif(!users.hasOwnProperty(key)) continue;\n\t\t\t\t\t\t\tconst _user = users[key];\n\t\t\t\t\t\t\tif(parseInt(_user.ID) === parseInt(id)){\n\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t<AuthorItem\n\t\t\t\t\t\t\t\t\t\tkey={id}\n\t\t\t\t\t\t\t\t\t\tindex={index}\n\t\t\t\t\t\t\t\t\t\tauthor={_user}\n\t\t\t\t\t\t\t\t\t onUnselect={this.onUnselect.bind(this,_user)}\n\t\t\t\t\t\t\t\t\t onChangePosition={this.onChangePosition.bind(this,_user, index)}\n\t\t\t\t\t\t\t\t\t isMainAuthor={(index === 0)}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t})}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t)\n\t}\n\t\n\t/**\n\t * ------------------------------------------------\n\t * events\n\t * ------------------------------------------------\n\t */\n\tonSelect(author){\n\t\tif(author.ID == 0){\n\t\t\tauthor.ID = this.state.new_user_id--;\n\t\t\tthis.state.users.push(author);\n\t\t}\n\t\t\n\t\tthis.state.selected.push(author.ID);\n\t\tthis.state.selected = _.unique(this.state.selected);\n\t\tthis.setState({ selected: this.state.selected });\n\n\t\tthis.dispatchChanged();\n\t\t\n\t}\n\tonUnselect(author){\n\t\tlet selected = [];\n\t\tif(this.state.main_author == author.ID){\n\t\t\tconsole.log(\"you cannot delete main author\");\n\t\t\treturn;\n\t\t}\n\t\tfor(let _id of this.state.selected){\n\t\t\t\n\t\t\tif(_id == author.ID) continue;\n\t\t\tselected.push(_id);\n\t\t}\n\t\tthis.setState({selected: selected});\n\t\tthis.dispatchChanged()\n\t}\n\tonChangePosition(user, from, to){\n\t\tlet selected = [];\n\t\t\n\t\t/**\n\t\t * new user cannot be on first position\n\t\t */\n\t\tif(to == 0 && user.ID <= 0) return;\n\t\t\n\t\tfor(let index in this.state.selected){\n\t\t\t\n\t\t\tif(!this.state.selected.hasOwnProperty(index)) continue;\n\t\t\t\n\t\t\tif(index == from){\n\t\t\t\tselected.push(this.state.selected[to]);\n\t\t\t} else if( index == to){\n\t\t\t\tselected.push(this.state.selected[from]);\n\t\t\t} else {\n\t\t\t\tselected.push(this.state.selected[index]);\n\t\t\t}\n\t\t}\n\t\tthis.setMainUserID(selected[0]);\n\t\tthis.setState({selected: selected, main_author: this.getMainUserID()});\n\t\tthis.dispatchChanged();\n\t}\n\tonMainAuthorChanged(e){\n\t\tconst author_id = e.target.value;\n\t\t\n\t\t/**\n\t\t * remove if already in selecteds\n\t\t * @type {number}\n\t\t */\n\t\tlet index = 0;\n\t\twhile(index < this.state.selected.length){\n\t\t\tif(this.state.selected[index] === author_id){\n\t\t\t\tthis.state.selected.splice(index,1);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tindex++;\n\t\t}\n\t\t\n\t\t/**\n\t\t * add to top as main author\n\t\t */\n\t\tthis.state.selected.unshift(author_id);\n\t\t\n\t\t// update main author\n\t\tthis.setState({selected:this.state.selected});\n\t}\n\t\n\t/**\n\t * ------------------------------------------------\n\t * other functions\n\t * ------------------------------------------------\n\t */\n\tgetMainUserControl(){\n\t\tif(this.props.isGutenbergActive) return null;\n\n\t\tif(this._main_user_select != null) return this._main_user_select;\n\t\tlet control = document.getElementById(\"post_author_override\");\n\t\tif(control == null)\n\t\t\tcontrol = document.getElementById(\"post-author-selector-1\");\n\n\t\tif(control != null){\n\t\t\tthis._main_user_select = control;\n\t\t\tthis._main_user_select.addEventListener(\"change\",this.onMainAuthorChanged.bind(this));\n\t\t}\n\t\treturn this._main_user_select;\n\t}\n\tsetMainUserID(user_id){\n\t\tconst control = this.getMainUserControl();\n\t\tif(typeof control !== typeof undefined && control != null){\n\t\t\tcontrol.value = user_id;\n\t\t\tcontrol.dispatchEvent(new Event(\"change\"));\n\t\t}\n\n\t}\n\tgetMainUserID(){\n\t\tconst control = this.getMainUserControl();\n\t\tif(typeof control !== typeof undefined && control !== null) return control.value;\n \t\treturn -1;\n\t}\n\tisSelected(user_id){\n\t\tfor(let _uid of this.state.selected){\n\t\t\tif(_uid === user_id) return true;\n\t\t}\n\t\treturn false;\n\t}\n\tdispatchChanged(){\n\t\tclearTimeout(this.dispatchTimeout);\n\t\tthis.dispatchTimeout = setTimeout(()=>{\n\t\t\tconst users = [];\n\t\t\tfor(const uid of this.state.selected){\n\t\t\t\tfor(const user of this.props.users){\n\t\t\t\t\tif(parseInt(user.ID) === parseInt(uid)){\n\t\t\t\t\t\tusers.push({...user});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.props.onAuthorsChange(users);\n\t\t}, 300);\n\n\t}\n}\n\n/**\n * property defaults\n */\nMetaBox.defaultProps = {\n\tusers: [],\n\tlanguage: {},\n\tonAuthorsChange: () => {},\n};\n\n/**\n * define property types\n */\nMetaBox.propTypes = {\n\tisGutenbergActive: PropTypes.bool.isRequired,\n\tusers: PropTypes.array.isRequired,\n\tselected: PropTypes.array.isRequired,\n\tlanguage: PropTypes.object.isRequired,\n\tonAuthorsChange: PropTypes.func,\n};\n\n/**\n * export component to public\n */\nexport default MetaBox;","import ReactDOM from 'react-dom';\nimport MetaBox from './meta-box/meta-box.jsx';\n\nimport \"./meta-box.scss\";\n\n/**\n * wait for dom to be ready so all plugins etc are loaded\n */\ndocument.addEventListener(\"DOMContentLoaded\", function(event) {\n\t\n\t/**\n\t * append app to grid app root\n\t */\n\t\n\tconst {language, users, selected, root_id} = AdditionalAuthors;\n\n\tReactDOM.render(\n\t\t<MetaBox\n\t\t\tisGutenbergActive={false}\n\t\t\tlanguage={language}\n\t\t\tusers={users}\n\t\t selected={selected}\n\t\t\tonAuthorsChange={(authors)=>{\n\t\t\t\tdocument.dispatchEvent(new CustomEvent(\"onAdditionalAuthorsChange\", { detail: authors }));\n\t\t\t}}\n\t\t/>,\n\t\tdocument.getElementById(root_id)\n\t);\n});"],"names":["ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","module","exports","shim","props","propName","componentName","location","propFullName","secret","err","Error","name","getShim","isRequired","ReactPropTypes","array","bigint","bool","func","number","object","string","symbol","any","arrayOf","element","elementType","instanceOf","node","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","PropTypes","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","window","VERSION","root","self","global","Function","ArrayProto","Array","ObjProto","SymbolProto","push","slice","toString","supportsArrayBuffer","ArrayBuffer","supportsDataView","DataView","nativeIsArray","isArray","nativeKeys","keys","nativeCreate","create","nativeIsView","isView","_isNaN","isNaN","_isFinite","isFinite","hasEnumBug","propertyIsEnumerable","nonEnumerableProps","MAX_ARRAY_INDEX","Math","pow","restArguments","startIndex","length","max","arguments","rest","index","this","args","apply","isObject","type","isNull","isUndefined","isBoolean","isElement","nodeType","tagTester","tag","isFunction","nodelist","document","childNodes","Int8Array","hasStringTagBug","isIE11","Map","isDataView","getInt8","isArrayBuffer","buffer","has","isArguments","isSymbol","parseFloat","isNumber","constant","createSizePropertyCheck","getSizeProperty","collection","sizeProperty","shallowProperty","typedArrayPattern","test","collectNonEnumProps","hash","l","i","contains","emulatedSet","nonEnumIdx","constructor","proto","isEmpty","isString","isMatch","attrs","_keys","_","_wrapped","toBufferView","bufferSource","Uint8Array","byteOffset","valueOf","toJSON","String","tagDataView","eq","b","aStack","bStack","deepEq","className","areArrays","aCtor","bCtor","pop","isEqual","allKeys","ie11fingerprint","methods","weakMapMethods","forEachName","commonInit","mapTail","mapMethods","concat","setMethods","values","pairs","invert","result","functions","names","sort","createAssigner","keysFunc","defaults","source","baseCreate","Ctor","extendOwn","clone","extend","tap","interceptor","toPath","path","deepGet","defaultValue","identity","matcher","property","optimizeCb","context","argCount","accumulator","baseIteratee","iteratee","Infinity","cb","mapObject","results","currentKey","noop","propertyOf","times","accum","random","min","floor","Date","now","getTime","createEscaper","map","escaper","match","join","testRegexp","RegExp","replaceRegexp","replace","templateSettings","evaluate","interpolate","escape","noMatch","escapes","escapeRegExp","escapeChar","bareIdentifier","template","text","settings","oldSettings","offset","render","argument","variable","e","data","fallback","idCounter","uniqueId","prefix","id","chain","instance","_chain","executeBound","sourceFunc","boundFunc","callingContext","partial","boundArgs","placeholder","bound","position","TypeError","callArgs","flatten","input","depth","strict","output","idx","j","len","bind","memoize","hasher","cache","address","wait","setTimeout","delay","throttle","options","timeout","previous","later","leading","throttled","_now","remaining","clearTimeout","trailing","cancel","debounce","immediate","passed","debounced","_args","wrap","wrapper","negate","predicate","compose","start","after","before","memo","findKey","createPredicateIndexFinder","dir","sortedIndex","low","high","mid","createIndexFinder","predicateFind","item","findIndex","findLastIndex","find","findWhere","each","createReduce","initial","reducer","filter","list","reject","every","some","fromIndex","guard","indexOf","contextPath","method","pluck","where","computed","lastComputed","v","reStrSymbol","toArray","sample","last","rand","temp","shuffle","sortBy","criteria","left","right","group","behavior","partition","pass","size","keyInObj","pick","first","compact","Boolean","otherArrays","difference","uniq","isSorted","seen","arrays","intersection","argsLength","unzip","range","stop","step","ceil","chunk","count","chainResult","mixin","SearchItem","Component","super","state","over","isOver","componentWillReceiveProps","nextProps","display_name","author","createElement","onMouseOver","onMouseOut","onClick","is_over","setState","onSelect","NewItem","Search","query","over_index","search_result","focus","onKeyUp","languages","label","onKeyDown","onChange","onFocus","onFocusSearch","onBlur","renderList","selected","newItem","onNewItem","ID","target","users","user","toLowerCase","parseInt","unshift","closeTimeout","user_nicename","keyCode","preventDefault","defaultProps","propTypes","Delete","ProfileLink","href","AuthorItem","isMainAuthor","onUnselect","onChangePosition","user_login","MetaBox","new_user_id","componentDidMount","dispatchChanged","getMainUserControl","language","isGutenbergActive","new_users","main_author","gutenbergInfo","u","description","_user","_id","console","log","from","to","setMainUserID","getMainUserID","onMainAuthorChanged","author_id","splice","_main_user_select","control","getElementById","addEventListener","user_id","dispatchEvent","Event","isSelected","_uid","dispatchTimeout","uid","onAuthorsChange","event","root_id","AdditionalAuthors","ReactDOM","authors","CustomEvent","detail"],"sourceRoot":""} -
additional-authors/tags/1.3.5/dist/additional-authors.asset.php
r2951153 r3012943 1 <?php return array('dependencies' => array('react', 'wp-components', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-plugins'), 'version' => ' 840828c8bcdefc83fa8c');1 <?php return array('dependencies' => array('react', 'wp-components', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-plugins'), 'version' => '9e774120bbfcaf2dfc3a'); -
additional-authors/tags/1.3.5/dist/additional-authors.js
r2951153 r3012943 1 (()=>{var e={ 703:(e,t,n)=>{"use strict";var r=n(414);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,s){if(s!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},193:(e,t,n)=>{e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t){e.exports=n(196)},function(e,t,n){"use strict";n.r(t);var r=n(0);t.default=function(e,t,n){void 0===n&&(n="click");var o=Object(r.useRef)(t);Object(r.useEffect)((function(){o.current=t})),Object(r.useEffect)((function(){var t=function(t){e&&e.current&&(t.target.shadowRoot?t.target.shadowRoot.contains(e.current)||o.current(t):e.current.contains(t.target)||o.current(t))};return document.addEventListener(n,t),document.addEventListener("touchstart",t),function(){document.removeEventListener(n,t),document.removeEventListener("touchstart",t)}}))}}])},196:e=>{"use strict";e.exports=window.React}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.element,t=window.wp.plugins,r=window.wp.editPost;function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}const a=window.wp.components;var s=n(193),i=n.n(s);const u=t=>{let{display_name:n,onClick:r}=t;return(0,e.createElement)("div",{className:"additional-authors-author",onClick:r},n)},c=t=>{let{i18n:n,users:r,onFound:s}=t;const[c,l]=(0,e.useState)(""),[d,p]=(0,e.useState)(!1),[f,m]=(0,e.useState)([]),h=(0,e.useRef)();return i()(h,(()=>{p(!1)})),(0,e.useEffect)((()=>{m(r.filter((e=>""===c||e.display_name.toLowerCase().includes(c.toLowerCase()))))}),[c,r]),function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];(0,e.useEffect)((()=>{if(!r)return;const e=e=>{let{key:n}=e;"Escape"===n&&t()};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}),n)}((()=>{p(!1)}),[d],d),(0,e.createElement)(a.BaseControl,{className:"additional-authors--search-author"},(0,e.createElement)("div",{ref:h},(0,e.createElement)("div",{className:"additional-authors--search-authors__input-wrapper"},(0,e.createElement)(a.TextControl,{label:n.label,value:c,onChange:e=>{p(!0),l(e)},onFocus:()=>p(!0)})),d?(0,e.createElement)(a.Popover,{focusOnMount:!1,position:"bottom center"},f.length>0?f.map((t=>(0,e.createElement)(u,o({key:t.ID},t,{onClick:()=>{p(!1),s(t)}})))):(0,e.createElement)("p",{className:"additional-authors--search-author__no-results"},n.search_404)):null))},l=window.wp.data,d=()=>{const e=(0,l.useSelect)((e=>e("core/editor").getCurrentPost().author));return(0,l.useSelect)((e=>e("core/editor").getPostEdits().author))||e};var p=n(697),f=n.n(p);const m=t=>{let{onClick:n}=t;return(0,e.createElement)("span",{className:"author-item__delete",onClick:n},"×")},h=t=>{let{author:n}=t;const{ID:r,display_name:o}=n;return r>0?(0,e.createElement)("a",{href:`/wp-admin/user-edit.php?user_id=${r}`,target:"_blank"},o):o},v=t=>{let{author:n,index:r,onUnselect:o,onChangePosition:a}=t;return(0,e.createElement)("div",{className:"author-item "+(n.ID<0?"is-new-author":"")},(0,e.createElement)("span",{className:"autor-item__name"},(0,e.createElement)(h,{author:n}),(0,e.createElement)("span",{className:"author-item__nicename"},n.user_nicename)),(0,e.createElement)(m,{onClick:o}),(0,e.createElement)("span",{className:"author-item__move author-item__up",onClick:()=>a(r-1)},"▲"),(0,e.createElement)("span",{className:"author-item__move author-item__down",onClick:()=>a(r+1)},"▼"))};v.defaultProps={author:{ID:-1,display_name:"",user_login:""},className:""},v.propTypes={author:f().object.isRequired,index:f().number.isRequired,onUnselect:f().func.isRequired,onChangePosition:f().func.isRequired,isMainAuthor:f().bool.isRequired};const _=v,y=t=>{const{users:n,i18n:r}=t,o=d(),[a,s]=(()=>{const t=d(),n=(0,l.useSelect)((e=>e("core/editor").getCurrentPost().additional_authors)),r=(0,l.useSelect)((e=>e("core/editor").getPostEdits().additional_authors)),{editPost:o}=(0,l.useDispatch)("core/editor"),a=(r||n).filter((e=>parseInt(t)!==parseInt(e)));return(0,e.useEffect)((()=>{(a.includes(t+"")||a.includes(parseInt(t)))&&o(a.filter((e=>parseInt(e)!==parseInt(t))))}),[t,a]),[a,e=>{o({additional_authors:[t,...e]})}]})();return(0,e.createElement)("div",{style:{marginBottom:20}},(0,e.createElement)(c,{i18n:r,users:n.filter((e=>{const t=!a.includes(e.ID+"")&&!a.includes(parseInt(e.ID));return t||console.debug(e.ID,t),t&&parseInt(e.ID)!==parseInt(o)})),onFound:e=>{const t=[...new Set([...a,e.ID])];s(t),document.dispatchEvent(new CustomEvent("onAdditionalAuthorsChange",{detail:t.map((e=>n.find((t=>parseInt(t.ID)===parseInt(e)))))}))}}),(0,e.createElement)("div",null,a.filter((e=>parseInt(o)!==parseInt(e))).map(((t,r)=>(0,e.createElement)(_,{key:t,author:n.find((e=>parseInt(e.ID)===parseInt(t))),index:r,onChangePosition:e=>((e,t)=>{const n=a[e],r=a[t],o=[...a];o[e]=r,o[t]=n,s(o)})(r,e),onUnselect:()=>(e=>{s(a.filter((t=>parseInt(t)!==parseInt(e))))})(t),isMainAuthor:!1})))))};(0,t.registerPlugin)("post-status-info-test",{render:()=>(0,e.createElement)(r.PluginPostStatusInfo,null,(0,e.createElement)(y,AdditionalAuthors))})})()})();1 (()=>{var e={49:(e,t,n)=>{"use strict";var r=n(257);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,o,s){if(s!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return n.PropTypes=n,n}},507:(e,t,n)=>{e.exports=n(49)()},257:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.React,t=window.wp.plugins,r=window.wp.editPost,a=window.wp.components,o=window.wp.element,s=({display_name:t,onClick:n})=>(0,e.createElement)("div",{className:"additional-authors-author",onClick:n},t),i=({i18n:t,users:n,onFound:r})=>{const[i,c]=(0,o.useState)(""),[l,u]=(0,o.useState)(!1),[d,p]=(0,o.useState)([]);return(0,o.useEffect)((()=>{p(n.filter((e=>""===i||e.display_name.toLowerCase().includes(i.toLowerCase()))))}),[i,n]),((e,t=[],n=!0)=>{(0,o.useEffect)((()=>{if(!n)return;const t=({key:t})=>{"Escape"===t&&e()};return window.addEventListener("keydown",t),()=>{window.removeEventListener("keydown",t)}}),t)})((()=>{u(!1)}),[l],l),(0,e.createElement)(a.BaseControl,{className:"additional-authors--search-author"},(0,e.createElement)("div",null,(0,e.createElement)("div",{className:"additional-authors--search-authors__input-wrapper"},(0,e.createElement)(a.TextControl,{label:t.label,value:i,onChange:e=>{u(!0),c(e)},onFocus:()=>u(!0)})),l?(0,e.createElement)(a.Popover,{focusOnMount:!1,position:"bottom center"},d.length>0?d.map((t=>(0,e.createElement)(s,{key:t.ID,...t,onClick:()=>{u(!1),r(t)}}))):(0,e.createElement)("p",{className:"additional-authors--search-author__no-results"},t.search_404)):null))},c=window.wp.data,l=()=>{const e=(0,c.useSelect)((e=>e("core/editor").getCurrentPost().author));return(0,c.useSelect)((e=>e("core/editor").getPostEdits().author))||e};var u=n(507),d=n.n(u);const p=({onClick:t})=>(0,e.createElement)("span",{className:"author-item__delete",onClick:t},"×"),m=({author:t})=>{const{ID:n,display_name:r}=t;return n>0?(0,e.createElement)("a",{href:`/wp-admin/user-edit.php?user_id=${n}`,target:"_blank"},r):r},h=({author:t,index:n,onUnselect:r,onChangePosition:a})=>(0,e.createElement)("div",{className:"author-item "+(t.ID<0?"is-new-author":"")},(0,e.createElement)("span",{className:"autor-item__name"},(0,e.createElement)(m,{author:t}),(0,e.createElement)("span",{className:"author-item__nicename"},t.user_nicename)),(0,e.createElement)(p,{onClick:r}),(0,e.createElement)("span",{className:"author-item__move author-item__up",onClick:()=>a(n-1)},"▲"),(0,e.createElement)("span",{className:"author-item__move author-item__down",onClick:()=>a(n+1)},"▼"));h.defaultProps={author:{ID:-1,display_name:"",user_login:""},className:""},h.propTypes={author:d().object.isRequired,index:d().number.isRequired,onUnselect:d().func.isRequired,onChangePosition:d().func.isRequired,isMainAuthor:d().bool.isRequired};const _=h,f=t=>{const{users:n,i18n:r}=t,a=l(),[s,u]=(()=>{const e=l(),t=(0,c.useSelect)((e=>e("core/editor").getCurrentPost().additional_authors)),n=(0,c.useSelect)((e=>e("core/editor").getPostEdits().additional_authors)),{editPost:r}=(0,c.useDispatch)("core/editor"),a=(n||t).filter((t=>parseInt(e)!==parseInt(t)));return(0,o.useEffect)((()=>{(a.includes(e+"")||a.includes(parseInt(e)))&&r(a.filter((t=>parseInt(t)!==parseInt(e))))}),[e,a]),[a,t=>{r({additional_authors:[e,...t]})}]})();return(0,e.createElement)("div",{style:{marginBottom:20}},(0,e.createElement)(i,{i18n:r,users:n.filter((e=>{const t=!s.includes(e.ID+"")&&!s.includes(parseInt(e.ID));return t||console.debug(e.ID,t),t&&parseInt(e.ID)!==parseInt(a)})),onFound:e=>{const t=[...new Set([...s,e.ID])];u(t),document.dispatchEvent(new CustomEvent("onAdditionalAuthorsChange",{detail:t.map((e=>n.find((t=>parseInt(t.ID)===parseInt(e)))))}))}}),(0,e.createElement)("div",null,s.filter((e=>parseInt(a)!==parseInt(e))).map(((t,r)=>(0,e.createElement)(_,{key:t,author:n.find((e=>parseInt(e.ID)===parseInt(t))),index:r,onChangePosition:e=>((e,t)=>{const n=s[e],r=s[t],a=[...s];a[e]=r,a[t]=n,u(a)})(r,e),onUnselect:()=>(e=>{u(s.filter((t=>parseInt(t)!==parseInt(e))))})(t),isMainAuthor:!1})))))};(0,t.registerPlugin)("post-status-info-test",{render:()=>(0,e.createElement)(r.PluginPostStatusInfo,null,(0,e.createElement)(f,{...AdditionalAuthors}))})})()})(); 2 2 //# sourceMappingURL=additional-authors.js.map -
additional-authors/tags/1.3.5/dist/additional-authors.js.map
r2951153 r3012943 1 {"version":3,"file":"additional-authors.js","mappings":" wCASA,IAAIA,EAAuB,EAAQ,KAEnC,SAASC,IAAiB,CAC1B,SAASC,IAA0B,CACnCA,EAAuBC,kBAAoBF,EAE3CG,EAAOC,QAAU,WACf,SAASC,EAAKC,EAAOC,EAAUC,EAAeC,EAAUC,EAAcC,GACpE,GAAIA,IAAWZ,EAAf,CAIA,IAAIa,EAAM,IAAIC,MACZ,mLAKF,MADAD,EAAIE,KAAO,sBACLF,CAPN,CAQF,CAEA,SAASG,IACP,OAAOV,CACT,CAHAA,EAAKW,WAAaX,EAMlB,IAAIY,EAAiB,CACnBC,MAAOb,EACPc,OAAQd,EACRe,KAAMf,EACNgB,KAAMhB,EACNiB,OAAQjB,EACRkB,OAAQlB,EACRmB,OAAQnB,EACRoB,OAAQpB,EAERqB,IAAKrB,EACLsB,QAASZ,EACTa,QAASvB,EACTwB,YAAaxB,EACbyB,WAAYf,EACZgB,KAAM1B,EACN2B,SAAUjB,EACVkB,MAAOlB,EACPmB,UAAWnB,EACXoB,MAAOpB,EACPqB,MAAOrB,EAEPsB,eAAgBpC,EAChBC,kBAAmBF,GAKrB,OAFAiB,EAAeqB,UAAYrB,EAEpBA,CACT,C,gBC/CEd,EAAOC,QAAU,EAAQ,IAAR,E,uBCNnBD,EAAOC,QAFoB,8C,gBCT3BD,EAAOC,QAAQ,SAASmC,GAAG,IAAIC,EAAE,CAAC,EAAE,SAASC,EAAEC,GAAG,GAAGF,EAAEE,GAAG,OAAOF,EAAEE,GAAGtC,QAAQ,IAAIuC,EAAEH,EAAEE,GAAG,CAACE,EAAEF,EAAEG,GAAE,EAAGz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OmE,GAAOlB,SAASkB,KAASlB,SAASD,KAA9D,EAuBwBhB,CAAWgB,GAC3BV,cAAc,OArB1B,GC1BJ8B,EAAAA,EAAAA,gBAAgB,wBAAyB,CAAEC,OARX,KAC5B,mBAAC,EAAAC,qBAAD,MACI,mBAAC,EACOC,qB","sources":["webpack://@palasthotel/additional-authors/./node_modules/prop-types/factoryWithThrowingShims.js","webpack://@palasthotel/additional-authors/./node_modules/prop-types/index.js","webpack://@palasthotel/additional-authors/./node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack://@palasthotel/additional-authors/./node_modules/use-click-outside/dist/index.js","webpack://@palasthotel/additional-authors/external window \"React\"","webpack://@palasthotel/additional-authors/webpack/bootstrap","webpack://@palasthotel/additional-authors/webpack/runtime/compat get default export","webpack://@palasthotel/additional-authors/webpack/runtime/define property getters","webpack://@palasthotel/additional-authors/webpack/runtime/hasOwnProperty shorthand","webpack://@palasthotel/additional-authors/external window [\"wp\",\"element\"]","webpack://@palasthotel/additional-authors/external window [\"wp\",\"plugins\"]","webpack://@palasthotel/additional-authors/external window [\"wp\",\"editPost\"]","webpack://@palasthotel/additional-authors/./node_modules/@babel/runtime/helpers/esm/extends.js","webpack://@palasthotel/additional-authors/external window [\"wp\",\"components\"]","webpack://@palasthotel/additional-authors/./src/gutenberg/Search.js","webpack://@palasthotel/additional-authors/./src/hooks/use-utils.js","webpack://@palasthotel/additional-authors/external window [\"wp\",\"data\"]","webpack://@palasthotel/additional-authors/./src/hooks/use-post.js","webpack://@palasthotel/additional-authors/./src/gutenberg/Author.js","webpack://@palasthotel/additional-authors/./src/gutenberg/Plugin.js","webpack://@palasthotel/additional-authors/./src/gutenberg.js"],"sourcesContent":["/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","module.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,\"a\",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p=\"\",r(r.s=1)}([function(e,t){e.exports=require(\"react\")},function(e,t,r){\"use strict\";r.r(t);var n=r(0);t.default=function(e,t,r){void 0===r&&(r=\"click\");var o=Object(n.useRef)(t);Object(n.useEffect)((function(){o.current=t})),Object(n.useEffect)((function(){var t=function(t){e&&e.current&&(t.target.shadowRoot?t.target.shadowRoot.contains(e.current)||o.current(t):e.current.contains(t.target)||o.current(t))};return document.addEventListener(r,t),document.addEventListener(\"touchstart\",t),function(){document.removeEventListener(r,t),document.removeEventListener(\"touchstart\",t)}}))}}]);","module.exports = window[\"React\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"element\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"plugins\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"editPost\"];","export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"components\"];","import {BaseControl, Popover, Spinner, TextControl} from \"@wordpress/components\";\nimport {useEffect, useState, useRef} from \"@wordpress/element\";\nimport { useEscapeKey } from \"../hooks/use-utils.js\";\nimport './Search.css'\nimport useClickOutside from \"use-click-outside\";\n\nconst SearchResult = ({display_name, onClick})=>{\n return <div\n className=\"additional-authors-author\"\n onClick={onClick}\n >\n {display_name}\n </div>\n}\n\nconst Search = ({i18n, users, onFound})=>{\n\n const [state, setState] = useState(\"\")\n const [isVisible, setIsVisible] = useState(false);\n const [results, setResults] = useState([]);\n\n const ref = useRef();\n useClickOutside(ref, ()=>{\n setIsVisible(false);\n });\n\n useEffect(()=>{\n setResults(users.filter(u=>{\n return state === \"\" || u.display_name.toLowerCase().includes(state.toLowerCase());\n }));\n }, [state, users]);\n\n\n useEscapeKey(()=>{\n setIsVisible(false)\n }, [isVisible], isVisible)\n\n return <BaseControl className=\"additional-authors--search-author\">\n <div ref={ref}>\n <div className=\"additional-authors--search-authors__input-wrapper\">\n <TextControl\n label={i18n.label}\n value={state}\n onChange={(value)=>{\n setIsVisible(true)\n setState(value);\n }}\n onFocus={()=>setIsVisible(true)}\n />\n </div>\n\n { isVisible ? (\n <Popover\n focusOnMount={false}\n position=\"bottom center\"\n >\n {results.length > 0 ?\n results.map(user=> <SearchResult\n key={user.ID}\n {...user}\n onClick={()=>{\n setIsVisible(false);\n onFound(user);\n }}\n />\n )\n :\n <p className=\"additional-authors--search-author__no-results\">{i18n.search_404}</p>\n }\n </Popover>\n ) : null}\n </div>\n </BaseControl>\n}\n\nexport default Search","import { useEffect, useState } from \"@wordpress/element\";\n\nexport const useDebounce = (value, delay) => {\n const [debouncedValue, setDebouncedValue] = useState(value);\n useEffect(() => {\n const handler = setTimeout(() => {\n setDebouncedValue(value);\n }, delay);\n return () => {\n clearTimeout(handler);\n };\n }, [value, delay]);\n return debouncedValue;\n}\n\nexport const useEscapeKey = (callback, dependencies = [], enabled = true)=>{\n\n useEffect(()=>{\n\n if(!enabled) return;\n\n const onKeyDown = ({key})=>{\n if(key === \"Escape\") callback();\n }\n window.addEventListener('keydown', onKeyDown);\n return ()=>{\n window.removeEventListener('keydown', onKeyDown);\n }\n }, dependencies)\n}","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"data\"];","import {useDispatch, useSelect} from '@wordpress/data';\nimport {useEffect} from \"@wordpress/element\";\n\n\nexport const usePost = ()=> useSelect(select => select(\"core/editor\").getCurrentPost(), undefined);\n\nexport const useMainAuthor = ()=>{\n const author = useSelect(select => select(\"core/editor\").getCurrentPost().author);\n const authorEdit = useSelect(select => select(\"core/editor\").getPostEdits().author);\n return authorEdit || author;\n}\n\nexport const useAdditionalAuthors = ()=>{\n\n const mainAuthor = useMainAuthor();\n const authors = useSelect(select => select(\"core/editor\").getCurrentPost().additional_authors);\n const authorsEdited = useSelect(select => select(\"core/editor\").getPostEdits().additional_authors);\n const {editPost} = useDispatch(\"core/editor\");\n\n const additionalAuthors = (authorsEdited || authors).filter(id => parseInt(mainAuthor) !== parseInt(id));\n\n useEffect(()=>{\n if(additionalAuthors.includes(mainAuthor+\"\") || additionalAuthors.includes(parseInt(mainAuthor))){\n editPost(additionalAuthors.filter(id=> parseInt(id) !== parseInt(mainAuthor)));\n }\n }, [mainAuthor, additionalAuthors]);\n\n return [\n additionalAuthors,\n (userIds)=>{\n editPost({\n additional_authors: [mainAuthor, ...userIds],\n });\n }\n ]\n}","import PropTypes from 'prop-types';\nimport \"./Author.css\";\n\nconst Delete = ({onClick}) => {\n\treturn (\n\t\t<span\n\t\t\tclassName=\"author-item__delete\"\n\t\t\tonClick={onClick}\n\t\t>\n\t\t\t×\n\t\t</span>\n\t)\n}\n\nconst ProfileLink = ({author}) => {\n\tconst {ID,display_name} = author;\n\tif(ID > 0){\n\t\treturn <a href={`/wp-admin/user-edit.php?user_id=${ID}`} target=\"_blank\">{display_name}</a>\n\t}\n\treturn display_name\n}\n\nconst Author = ({author, index, onUnselect, onChangePosition})=>{\n\n\treturn (\n\t\t<div\n\t\t\tclassName={`author-item ${(author.ID < 0)?\"is-new-author\":\"\"}`}\n\t\t>\n\t\t\t\t<span className=\"autor-item__name\">\n\t\t\t\t\t<ProfileLink author={author} />\n\t\t\t\t\t<span className=\"author-item__nicename\">{author.user_nicename}</span>\n\t\t\t\t</span>\n\n\t\t\t<Delete onClick={onUnselect} />\n\n\t\t\t<span\n\t\t\t\tclassName=\"author-item__move author-item__up\"\n\t\t\t\tonClick={()=>onChangePosition(index-1)}\n\t\t\t>\n\t\t\t\t\t▲\n\t\t\t\t</span>\n\t\t\t<span\n\t\t\t\tclassName=\"author-item__move author-item__down\"\n\t\t\t\tonClick={()=>onChangePosition(index+1)}\n\t\t\t>\n\t\t\t\t\t▼\n\t\t\t</span>\n\t\t</div>\n\t)\n\n}\n\n/**\n * property defaults\n */\nAuthor.defaultProps = {\n\tauthor: {\n\t\tID: -1,\n\t\tdisplay_name: \"\",\n\t\tuser_login: \"\",\n\t},\n\tclassName: \"\",\n};\n\n/**\n * define property types\n */\nAuthor.propTypes = {\n\tauthor: PropTypes.object.isRequired,\n\tindex: PropTypes.number.isRequired,\n\tonUnselect: PropTypes.func.isRequired,\n\tonChangePosition: PropTypes.func.isRequired,\n\tisMainAuthor: PropTypes.bool.isRequired,\n};\n\n/**\n * export component to public\n */\nexport default Author;","import Search from \"./Search\";\nimport {useAdditionalAuthors, useMainAuthor} from \"../hooks/use-post\";\nimport Author from \"./Author\";\n\nconst Plugin = (props)=>{\n const {\n users,\n i18n,\n } = props;\n\n const mainAuthor = useMainAuthor();\n const [selected, setSelected] = useAdditionalAuthors();\n\n const onSelectSearchItem = (user)=>{\n const newSelection = [...new Set([...selected, user.ID])];\n setSelected(newSelection);\n document.dispatchEvent(\n new CustomEvent(\n \"onAdditionalAuthorsChange\",\n {\n detail: newSelection.map( id=> users.find( u=> parseInt(u.ID) === parseInt(id) ) )\n }\n )\n );\n }\n\n const onChangePosition = (from, to) => {\n const userIdFrom = selected[from];\n const userIdTo = selected[to];\n const newSelection = [...selected]\n newSelection[from] = userIdTo;\n newSelection[to] = userIdFrom;\n setSelected(newSelection);\n }\n\n const onUnselect = (id)=>{\n setSelected(selected.filter(_id => parseInt(_id) !== parseInt(id)))\n }\n\n return <div style={{marginBottom: 20}}>\n\n <Search\n i18n={i18n}\n users={users.filter(u => {\n const notSelected = !selected.includes(u.ID+\"\") && !selected.includes( parseInt(u.ID));\n if(!notSelected) console.debug(u.ID, notSelected);\n return notSelected && parseInt(u.ID) !== parseInt(mainAuthor);\n })}\n onFound={onSelectSearchItem}\n />\n <div>\n {selected\n .filter(id => parseInt(mainAuthor) !== parseInt(id))\n .map((id, index)=>{\n return <Author\n key={id}\n author={users.find(u=> parseInt(u.ID) === parseInt(id))}\n index={index}\n onChangePosition={(to)=>onChangePosition(index, to)}\n onUnselect={()=>onUnselect(id)}\n isMainAuthor={false}\n />\n })}\n </div>\n </div>;\n}\n\nexport default Plugin;","import { registerPlugin } from '@wordpress/plugins';\nimport { PluginPostStatusInfo } from '@wordpress/edit-post';\nimport Plugin from \"./gutenberg/Plugin.js\";\n\n\nconst AdditionalAuthorsPlugin = () => (\n <PluginPostStatusInfo>\n <Plugin\n {...AdditionalAuthors}\n />\n </PluginPostStatusInfo>\n);\n\nregisterPlugin( 'post-status-info-test', { render: AdditionalAuthorsPlugin } );\n"],"names":["ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","module","exports","shim","props","propName","componentName","location","propFullName","secret","err","Error","name","getShim","isRequired","ReactPropTypes","array","bigint","bool","func","number","object","string","symbol","any","arrayOf","element","elementType","instanceOf","node","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","PropTypes","e","t","r","n","o","i","l","call","m","c","d","Object","defineProperty","enumerable","get","Symbol","toStringTag","value","__esModule","create","bind","default","prototype","hasOwnProperty","p","s","useRef","useEffect","current","target","shadowRoot","contains","document","addEventListener","removeEventListener","window","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","getter","a","definition","key","obj","prop","_extends","assign","arguments","length","source","apply","this","SearchResult","display_name","onClick","className","i18n","users","onFound","state","setState","useState","isVisible","setIsVisible","results","setResults","ref","useClickOutside","filter","u","toLowerCase","includes","callback","dependencies","enabled","onKeyDown","useEscapeKey","BaseControl","TextControl","label","onChange","onFocus","Popover","focusOnMount","position","map","user","ID","search_404","useMainAuthor","author","useSelect","select","getCurrentPost","getPostEdits","Delete","ProfileLink","href","Author","index","onUnselect","onChangePosition","user_nicename","defaultProps","user_login","propTypes","isMainAuthor","mainAuthor","selected","setSelected","authors","additional_authors","authorsEdited","editPost","useDispatch","additionalAuthors","id","parseInt","userIds","useAdditionalAuthors","style","marginBottom","notSelected","console","debug","newSelection","Set","dispatchEvent","CustomEvent","detail","find","to","from","userIdFrom","userIdTo","_id","registerPlugin","render","PluginPostStatusInfo","AdditionalAuthors"],"sourceRoot":""}1 {"version":3,"file":"additional-authors.js","mappings":"uCASA,IAAIA,EAAuB,EAAQ,KAEnC,SAASC,IAAiB,CAC1B,SAASC,IAA0B,CACnCA,EAAuBC,kBAAoBF,EAE3CG,EAAOC,QAAU,WACf,SAASC,EAAKC,EAAOC,EAAUC,EAAeC,EAAUC,EAAcC,GACpE,GAAIA,IAAWZ,EAAf,CAIA,IAAIa,EAAM,IAAIC,MACZ,mLAKF,MADAD,EAAIE,KAAO,sBACLF,CAPN,CAQF,CAEA,SAASG,IACP,OAAOV,CACT,CAHAA,EAAKW,WAAaX,EAMlB,IAAIY,EAAiB,CACnBC,MAAOb,EACPc,OAAQd,EACRe,KAAMf,EACNgB,KAAMhB,EACNiB,OAAQjB,EACRkB,OAAQlB,EACRmB,OAAQnB,EACRoB,OAAQpB,EAERqB,IAAKrB,EACLsB,QAASZ,EACTa,QAASvB,EACTwB,YAAaxB,EACbyB,WAAYf,EACZgB,KAAM1B,EACN2B,SAAUjB,EACVkB,MAAOlB,EACPmB,UAAWnB,EACXoB,MAAOpB,EACPqB,MAAOrB,EAEPsB,eAAgBpC,EAChBC,kBAAmBF,GAKrB,OAFAiB,EAAeqB,UAAYrB,EAEpBA,CACT,C,gBC/CEd,EAAOC,QAAU,EAAQ,GAAR,E,uBCNnBD,EAAOC,QAFoB,8C,GCRvBmC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAatC,QAGrB,IAAID,EAASoC,EAAyBE,GAAY,CAGjDrC,QAAS,CAAC,GAOX,OAHAwC,EAAoBH,GAAUtC,EAAQA,EAAOC,QAASoC,GAG/CrC,EAAOC,OACf,CC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AAEC,OARXC,KAC5B1F,EAAAA,EAAAA,eAAC2F,EAAAA,qBAAoB,MACjB3F,EAAAA,EAAAA,eAAC4F,EAAM,IACCC,sB","sources":["webpack://@palasthotel/additional-authors/./node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack://@palasthotel/additional-authors/webpack/bootstrap","webpack://@palasthotel/additional-authors/webpack/runtime/compat get default export","webpack://@palasthotel/additional-authors/webpack/runtime/define property getters","webpack://@palasthotel/additional-authors/webpack/runtime/hasOwnProperty shorthand","webpack://@palasthotel/additional-authors/external window \"React\"","webpack://@palasthotel/additional-authors/external window [\"wp\",\"plugins\"]","webpack://@palasthotel/additional-authors/external window [\"wp\",\"editPost\"]","webpack://@palasthotel/additional-authors/external window [\"wp\",\"components\"]","webpack://@palasthotel/additional-authors/external window [\"wp\",\"element\"]","webpack://@palasthotel/additional-authors/./src/gutenberg/Search.js","webpack://@palasthotel/additional-authors/./src/hooks/use-utils.js","webpack://@palasthotel/additional-authors/external window [\"wp\",\"data\"]","webpack://@palasthotel/additional-authors/./src/hooks/use-post.js","webpack://@palasthotel/additional-authors/./src/gutenberg/Author.js","webpack://@palasthotel/additional-authors/./src/gutenberg/Plugin.js","webpack://@palasthotel/additional-authors/./src/gutenberg.js"],"sourcesContent":["/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"React\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"plugins\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"editPost\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"components\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"element\"];","import {BaseControl, Popover, Spinner, TextControl} from \"@wordpress/components\";\nimport {useEffect, useState, useRef} from \"@wordpress/element\";\nimport { useEscapeKey } from \"../hooks/use-utils.js\";\nimport './Search.css'\n\nconst SearchResult = ({display_name, onClick})=>{\n return <div\n className=\"additional-authors-author\"\n onClick={onClick}\n >\n {display_name}\n </div>\n}\n\nconst Search = ({i18n, users, onFound})=>{\n\n const [state, setState] = useState(\"\")\n const [isVisible, setIsVisible] = useState(false);\n const [results, setResults] = useState([]);\n\n useEffect(()=>{\n setResults(users.filter(u=>{\n return state === \"\" || u.display_name.toLowerCase().includes(state.toLowerCase());\n }));\n }, [state, users]);\n\n\n useEscapeKey(()=>{\n setIsVisible(false)\n }, [isVisible], isVisible)\n\n return <BaseControl className=\"additional-authors--search-author\">\n <div>\n <div className=\"additional-authors--search-authors__input-wrapper\">\n <TextControl\n label={i18n.label}\n value={state}\n onChange={(value)=>{\n setIsVisible(true)\n setState(value);\n }}\n onFocus={()=>setIsVisible(true)}\n />\n </div>\n\n { isVisible ? (\n <Popover\n focusOnMount={false}\n position=\"bottom center\"\n >\n {results.length > 0 ?\n results.map(user=> <SearchResult\n key={user.ID}\n {...user}\n onClick={()=>{\n setIsVisible(false);\n onFound(user);\n }}\n />\n )\n :\n <p className=\"additional-authors--search-author__no-results\">{i18n.search_404}</p>\n }\n </Popover>\n ) : null}\n </div>\n </BaseControl>\n}\n\nexport default Search","import { useEffect, useState } from \"@wordpress/element\";\n\nexport const useDebounce = (value, delay) => {\n const [debouncedValue, setDebouncedValue] = useState(value);\n useEffect(() => {\n const handler = setTimeout(() => {\n setDebouncedValue(value);\n }, delay);\n return () => {\n clearTimeout(handler);\n };\n }, [value, delay]);\n return debouncedValue;\n}\n\nexport const useEscapeKey = (callback, dependencies = [], enabled = true)=>{\n\n useEffect(()=>{\n\n if(!enabled) return;\n\n const onKeyDown = ({key})=>{\n if(key === \"Escape\") callback();\n }\n window.addEventListener('keydown', onKeyDown);\n return ()=>{\n window.removeEventListener('keydown', onKeyDown);\n }\n }, dependencies)\n}","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"data\"];","import {useDispatch, useSelect} from '@wordpress/data';\nimport {useEffect} from \"@wordpress/element\";\n\n\nexport const usePost = ()=> useSelect(select => select(\"core/editor\").getCurrentPost(), undefined);\n\nexport const useMainAuthor = ()=>{\n const author = useSelect(select => select(\"core/editor\").getCurrentPost().author);\n const authorEdit = useSelect(select => select(\"core/editor\").getPostEdits().author);\n return authorEdit || author;\n}\n\nexport const useAdditionalAuthors = ()=>{\n\n const mainAuthor = useMainAuthor();\n const authors = useSelect(select => select(\"core/editor\").getCurrentPost().additional_authors);\n const authorsEdited = useSelect(select => select(\"core/editor\").getPostEdits().additional_authors);\n const {editPost} = useDispatch(\"core/editor\");\n\n const additionalAuthors = (authorsEdited || authors).filter(id => parseInt(mainAuthor) !== parseInt(id));\n\n useEffect(()=>{\n if(additionalAuthors.includes(mainAuthor+\"\") || additionalAuthors.includes(parseInt(mainAuthor))){\n editPost(additionalAuthors.filter(id=> parseInt(id) !== parseInt(mainAuthor)));\n }\n }, [mainAuthor, additionalAuthors]);\n\n return [\n additionalAuthors,\n (userIds)=>{\n editPost({\n additional_authors: [mainAuthor, ...userIds],\n });\n }\n ]\n}","import PropTypes from 'prop-types';\nimport \"./Author.css\";\n\nconst Delete = ({onClick}) => {\n\treturn (\n\t\t<span\n\t\t\tclassName=\"author-item__delete\"\n\t\t\tonClick={onClick}\n\t\t>\n\t\t\t×\n\t\t</span>\n\t)\n}\n\nconst ProfileLink = ({author}) => {\n\tconst {ID,display_name} = author;\n\tif(ID > 0){\n\t\treturn <a href={`/wp-admin/user-edit.php?user_id=${ID}`} target=\"_blank\">{display_name}</a>\n\t}\n\treturn display_name\n}\n\nconst Author = ({author, index, onUnselect, onChangePosition})=>{\n\n\treturn (\n\t\t<div\n\t\t\tclassName={`author-item ${(author.ID < 0)?\"is-new-author\":\"\"}`}\n\t\t>\n\t\t\t\t<span className=\"autor-item__name\">\n\t\t\t\t\t<ProfileLink author={author} />\n\t\t\t\t\t<span className=\"author-item__nicename\">{author.user_nicename}</span>\n\t\t\t\t</span>\n\n\t\t\t<Delete onClick={onUnselect} />\n\n\t\t\t<span\n\t\t\t\tclassName=\"author-item__move author-item__up\"\n\t\t\t\tonClick={()=>onChangePosition(index-1)}\n\t\t\t>\n\t\t\t\t\t▲\n\t\t\t\t</span>\n\t\t\t<span\n\t\t\t\tclassName=\"author-item__move author-item__down\"\n\t\t\t\tonClick={()=>onChangePosition(index+1)}\n\t\t\t>\n\t\t\t\t\t▼\n\t\t\t</span>\n\t\t</div>\n\t)\n\n}\n\n/**\n * property defaults\n */\nAuthor.defaultProps = {\n\tauthor: {\n\t\tID: -1,\n\t\tdisplay_name: \"\",\n\t\tuser_login: \"\",\n\t},\n\tclassName: \"\",\n};\n\n/**\n * define property types\n */\nAuthor.propTypes = {\n\tauthor: PropTypes.object.isRequired,\n\tindex: PropTypes.number.isRequired,\n\tonUnselect: PropTypes.func.isRequired,\n\tonChangePosition: PropTypes.func.isRequired,\n\tisMainAuthor: PropTypes.bool.isRequired,\n};\n\n/**\n * export component to public\n */\nexport default Author;","import Search from \"./Search\";\nimport {useAdditionalAuthors, useMainAuthor} from \"../hooks/use-post\";\nimport Author from \"./Author\";\n\nconst Plugin = (props)=>{\n const {\n users,\n i18n,\n } = props;\n\n const mainAuthor = useMainAuthor();\n const [selected, setSelected] = useAdditionalAuthors();\n\n const onSelectSearchItem = (user)=>{\n const newSelection = [...new Set([...selected, user.ID])];\n setSelected(newSelection);\n document.dispatchEvent(\n new CustomEvent(\n \"onAdditionalAuthorsChange\",\n {\n detail: newSelection.map( id=> users.find( u=> parseInt(u.ID) === parseInt(id) ) )\n }\n )\n );\n }\n\n const onChangePosition = (from, to) => {\n const userIdFrom = selected[from];\n const userIdTo = selected[to];\n const newSelection = [...selected]\n newSelection[from] = userIdTo;\n newSelection[to] = userIdFrom;\n setSelected(newSelection);\n }\n\n const onUnselect = (id)=>{\n setSelected(selected.filter(_id => parseInt(_id) !== parseInt(id)))\n }\n\n return <div style={{marginBottom: 20}}>\n\n <Search\n i18n={i18n}\n users={users.filter(u => {\n const notSelected = !selected.includes(u.ID+\"\") && !selected.includes( parseInt(u.ID));\n if(!notSelected) console.debug(u.ID, notSelected);\n return notSelected && parseInt(u.ID) !== parseInt(mainAuthor);\n })}\n onFound={onSelectSearchItem}\n />\n <div>\n {selected\n .filter(id => parseInt(mainAuthor) !== parseInt(id))\n .map((id, index)=>{\n return <Author\n key={id}\n author={users.find(u=> parseInt(u.ID) === parseInt(id))}\n index={index}\n onChangePosition={(to)=>onChangePosition(index, to)}\n onUnselect={()=>onUnselect(id)}\n isMainAuthor={false}\n />\n })}\n </div>\n </div>;\n}\n\nexport default Plugin;","import { registerPlugin } from '@wordpress/plugins';\nimport { PluginPostStatusInfo } from '@wordpress/edit-post';\nimport Plugin from \"./gutenberg/Plugin.js\";\n\nconst AdditionalAuthorsPlugin = () => (\n <PluginPostStatusInfo>\n <Plugin\n {...AdditionalAuthors}\n />\n </PluginPostStatusInfo>\n);\n\nregisterPlugin( 'post-status-info-test', { render: AdditionalAuthorsPlugin } );\n"],"names":["ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","module","exports","shim","props","propName","componentName","location","propFullName","secret","err","Error","name","getShim","isRequired","ReactPropTypes","array","bigint","bool","func","number","object","string","symbol","any","arrayOf","element","elementType","instanceOf","node","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","PropTypes","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","window","SearchResult","display_name","onClick","createElement","className","Search","i18n","users","onFound","state","setState","useState","isVisible","setIsVisible","results","setResults","useEffect","filter","u","toLowerCase","includes","useEscapeKey","callback","dependencies","enabled","onKeyDown","addEventListener","removeEventListener","BaseControl","TextControl","label","value","onChange","onFocus","Popover","focusOnMount","position","length","map","user","ID","search_404","useMainAuthor","author","useSelect","select","getCurrentPost","getPostEdits","Delete","ProfileLink","href","target","Author","index","onUnselect","onChangePosition","user_nicename","defaultProps","user_login","propTypes","isMainAuthor","mainAuthor","selected","setSelected","useAdditionalAuthors","authors","additional_authors","authorsEdited","editPost","useDispatch","additionalAuthors","id","parseInt","userIds","style","marginBottom","notSelected","console","debug","newSelection","Set","document","dispatchEvent","CustomEvent","detail","find","to","from","userIdFrom","userIdTo","_id","registerPlugin","render","AdditionalAuthorsPlugin","PluginPostStatusInfo","Plugin","AdditionalAuthors"],"sourceRoot":""} -
additional-authors/tags/1.3.5/dist/users-table.js.map
r2951153 r3012943 1 {"version":3,"file":"users-table.js","mappings":"mBA GAA,OAAOC,SAASC,iBAAiB,oBAAoB,KACjD,MAAMC,EAAQF,SAASG,cAAc,wBAC/BC,EAAOF,EAAMG,iBAAiB,mBAC9BC,EAAMC,MAAMC,KAAKJ,GAAMK,KAAIC,GACtBA,EAAIC,aAAa,MAAMC,QAAQ,QAAS,MAEnD,IAAKN,EAAIO,OAAQ,OAEjB,MAAMC,EAAOZ,EAAMC,cAAc,UAC3BY,EAAUf,SAASgB,cAAc,QACvCD,EAAQE,UAAUC,IAAI,UAAW,aACjCH,EAAQI,MAAMC,SAAW,WACzBL,EAAQI,MAAME,UAAY,yBAC1BP,EAAKQ,QAAQP,GAEbQ,MACIxB,OAAOyB,kBAAkBC,QAAQ,mDAAqDnB,EAAIoB,KAAK,MACjGC,MACEC,GAAYA,EAASC,SACvBF,MACGE,IACG,IAAK,MAAMC,KAAUD,EAAM,CACvB,MAAME,EAAO7B,EAAMC,cAAc,eAAe2B,EAAO,0BACvD,GAAGC,EAAK5B,cAAc,KAClB4B,EAAK5B,cAAc,wBAAwB6B,YAAcC,OAAOJ,EAAKC,SAClE,GAAGD,EAAKC,GAAU,EAAE,CACvB,MAAMI,EAAIlC,SAASgB,cAAc,KACjCkB,EAAEC,KAAOpC,OAAOyB,kBAAkBY,SAAS,WAAWN,EACtDI,EAAEG,UAAYJ,OAAOJ,EAAKC,IAC1BC,EAAKO,UAAY,GACjBP,EAAKQ,OAAOL,EACf,CACJ,KAEPM,SACE,KACIC,YAAW,KACP1B,EAAQ2B,QAAR,GACD,IAFH,GArBR,G","sources":["webpack://@palasthotel/additional-authors/./src/users-table.ts"],"sourcesContent":["// @ts-ignore\n// @ts-ignore\n\nwindow.document.addEventListener(\"DOMContentLoaded\", () => {\n const table = document.querySelector(\".wp-list-table.users\")\n const rows = table.querySelectorAll(\"tr[id^='user-']\");\n const ids = Array.from(rows).map(row => {\n return row.getAttribute(\"id\").replace(\"user-\", \"\");\n });\n if (!ids.length) return;\n\n const head = table.querySelector(\"#posts\");\n const spinner = document.createElement(\"span\");\n spinner.classList.add(\"spinner\", \"is-active\");\n spinner.style.position = \"absolute\";\n spinner.style.transform = \"translate(-34px, -4px)\";\n head.prepend(spinner);\n\n fetch(\n window.AdditionalAuthors.ajaxUrl+\"?action=additional_authors_count_posts&user_ids=\" + ids.join(\",\")\n ).then(\n response => response.json()\n ).then(\n (json: Record<string, number>) => {\n for (const userId in json) {\n const item = table.querySelector(\"tr[id='user-\"+userId+\"'] td.column-posts.num\");\n if(item.querySelector(\"a\")){\n item.querySelector(\"a > span:first-child\").textContent = String(json[userId]);\n } else if(json[userId] > 0){\n const a = document.createElement(\"a\");\n a.href = window.AdditionalAuthors.postsUrl+\"?author=\"+userId;\n a.innerText = String(json[userId]);\n item.innerHTML = \"\";\n item.append(a);\n }\n }\n }\n ).finally(\n ()=> {\n setTimeout(()=>{\n spinner.remove();\n }, 1000)\n }\n );\n\n});\n\nexport {}\n\ndeclare global {\n interface Window {\n AdditionalAuthors: {\n postsUrl: string\n ajaxUrl: string\n }\n }\n}"],"names":["window","document","addEventListener","table","querySelector","rows","querySelectorAll","ids","Array","from","map","row","getAttribute","replace","length","head","spinner","createElement","classList","add","style","position","transform","prepend","fetch","AdditionalAuthors","ajaxUrl","join","then","response","json","userId","item","textContent","String","a","href","postsUrl","innerText","innerHTML","append","finally","setTimeout","remove"],"sourceRoot":""}1 {"version":3,"file":"users-table.js","mappings":"mBAAAA,OAAOC,SAASC,iBAAiB,oBAAoB,KACjD,MAAMC,EAAQF,SAASG,cAAc,wBAC/BC,EAAOF,EAAMG,iBAAiB,mBAC9BC,EAAMC,MAAMC,KAAKJ,GAAMK,KAAIC,GACtBA,EAAIC,aAAa,MAAMC,QAAQ,QAAS,MAEnD,IAAKN,EAAIO,OAAQ,OAEjB,MAAMC,EAAOZ,EAAMC,cAAc,UAC3BY,EAAUf,SAASgB,cAAc,QACvCD,EAAQE,UAAUC,IAAI,UAAW,aACjCH,EAAQI,MAAMC,SAAW,WACzBL,EAAQI,MAAME,UAAY,yBAC1BP,EAAKQ,QAAQP,GAEbQ,MACIxB,OAAOyB,kBAAkBC,QAAQ,mDAAqDnB,EAAIoB,KAAK,MACjGC,MACEC,GAAYA,EAASC,SACvBF,MACGE,IACG,IAAK,MAAMC,KAAUD,EAAM,CACvB,MAAME,EAAO7B,EAAMC,cAAc,eAAe2B,EAAO,0BACvD,GAAGC,EAAK5B,cAAc,KAClB4B,EAAK5B,cAAc,wBAAwB6B,YAAcC,OAAOJ,EAAKC,SAClE,GAAGD,EAAKC,GAAU,EAAE,CACvB,MAAMI,EAAIlC,SAASgB,cAAc,KACjCkB,EAAEC,KAAOpC,OAAOyB,kBAAkBY,SAAS,WAAWN,EACtDI,EAAEG,UAAYJ,OAAOJ,EAAKC,IAC1BC,EAAKO,UAAY,GACjBP,EAAKQ,OAAOL,EAChB,CACJ,KAENM,SACE,KACIC,YAAW,KACP1B,EAAQ2B,QAAQ,GACjB,IAAK,GAEf,G","sources":["webpack://@palasthotel/additional-authors/./src/users-table.ts"],"sourcesContent":["window.document.addEventListener(\"DOMContentLoaded\", () => {\n const table = document.querySelector(\".wp-list-table.users\")\n const rows = table.querySelectorAll(\"tr[id^='user-']\");\n const ids = Array.from(rows).map(row => {\n return row.getAttribute(\"id\").replace(\"user-\", \"\");\n });\n if (!ids.length) return;\n\n const head = table.querySelector(\"#posts\");\n const spinner = document.createElement(\"span\");\n spinner.classList.add(\"spinner\", \"is-active\");\n spinner.style.position = \"absolute\";\n spinner.style.transform = \"translate(-34px, -4px)\";\n head.prepend(spinner);\n\n fetch(\n window.AdditionalAuthors.ajaxUrl+\"?action=additional_authors_count_posts&user_ids=\" + ids.join(\",\")\n ).then(\n response => response.json()\n ).then(\n (json: Record<string, number>) => {\n for (const userId in json) {\n const item = table.querySelector(\"tr[id='user-\"+userId+\"'] td.column-posts.num\");\n if(item.querySelector(\"a\")){\n item.querySelector(\"a > span:first-child\").textContent = String(json[userId]);\n } else if(json[userId] > 0){\n const a = document.createElement(\"a\");\n a.href = window.AdditionalAuthors.postsUrl+\"?author=\"+userId;\n a.innerText = String(json[userId]);\n item.innerHTML = \"\";\n item.append(a);\n }\n }\n }\n ).finally(\n ()=> {\n setTimeout(()=>{\n spinner.remove();\n }, 1000)\n }\n );\n\n});\n\nexport {}\n\ndeclare global {\n interface Window {\n AdditionalAuthors: {\n postsUrl: string\n ajaxUrl: string\n }\n }\n}\n"],"names":["window","document","addEventListener","table","querySelector","rows","querySelectorAll","ids","Array","from","map","row","getAttribute","replace","length","head","spinner","createElement","classList","add","style","position","transform","prepend","fetch","AdditionalAuthors","ajaxUrl","join","then","response","json","userId","item","textContent","String","a","href","postsUrl","innerText","innerHTML","append","finally","setTimeout","remove"],"sourceRoot":""} -
additional-authors/tags/1.3.5/readme.txt
r2951250 r3012943 4 4 Tags: author, meta fields 5 5 Requires at least: 4.0 6 Tested up to: 6. 37 Stable tag: 1.3. 46 Tested up to: 6.4.2 7 Stable tag: 1.3.5 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl … … 29 29 == Changelog == 30 30 31 = 1.3.5 = 32 * Fix: PHP 8.2 warnings 33 * Fix: double slash in asset urls 34 * Packages update 35 31 36 = 1.3.3 = 32 * Fix: PHP 8.2 warnings33 37 * Packages update 34 38 -
additional-authors/tags/1.3.5/vendor/composer/ClassLoader.php
r2926517 r3012943 46 46 private static $includeFile; 47 47 48 /** @var ?string*/48 /** @var string|null */ 49 49 private $vendorDir; 50 50 51 51 // PSR-4 52 52 /** 53 * @var array[] 54 * @psalm-var array<string, array<string, int>> 53 * @var array<string, array<string, int>> 55 54 */ 56 55 private $prefixLengthsPsr4 = array(); 57 56 /** 58 * @var array[] 59 * @psalm-var array<string, array<int, string>> 57 * @var array<string, list<string>> 60 58 */ 61 59 private $prefixDirsPsr4 = array(); 62 60 /** 63 * @var array[] 64 * @psalm-var array<string, string> 61 * @var list<string> 65 62 */ 66 63 private $fallbackDirsPsr4 = array(); … … 68 65 // PSR-0 69 66 /** 70 * @var array[] 71 * @psalm-var array<string, array<string, string[]>> 67 * List of PSR-0 prefixes 68 * 69 * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2'))) 70 * 71 * @var array<string, array<string, list<string>>> 72 72 */ 73 73 private $prefixesPsr0 = array(); 74 74 /** 75 * @var array[] 76 * @psalm-var array<string, string> 75 * @var list<string> 77 76 */ 78 77 private $fallbackDirsPsr0 = array(); … … 82 81 83 82 /** 84 * @var string[] 85 * @psalm-var array<string, string> 83 * @var array<string, string> 86 84 */ 87 85 private $classMap = array(); … … 91 89 92 90 /** 93 * @var bool[] 94 * @psalm-var array<string, bool> 91 * @var array<string, bool> 95 92 */ 96 93 private $missingClasses = array(); 97 94 98 /** @var ?string*/95 /** @var string|null */ 99 96 private $apcuPrefix; 100 97 101 98 /** 102 * @var self[]99 * @var array<string, self> 103 100 */ 104 101 private static $registeredLoaders = array(); 105 102 106 103 /** 107 * @param ?string$vendorDir104 * @param string|null $vendorDir 108 105 */ 109 106 public function __construct($vendorDir = null) … … 114 111 115 112 /** 116 * @return string[]113 * @return array<string, list<string>> 117 114 */ 118 115 public function getPrefixes() … … 126 123 127 124 /** 128 * @return array[] 129 * @psalm-return array<string, array<int, string>> 125 * @return array<string, list<string>> 130 126 */ 131 127 public function getPrefixesPsr4() … … 135 131 136 132 /** 137 * @return array[] 138 * @psalm-return array<string, string> 133 * @return list<string> 139 134 */ 140 135 public function getFallbackDirs() … … 144 139 145 140 /** 146 * @return array[] 147 * @psalm-return array<string, string> 141 * @return list<string> 148 142 */ 149 143 public function getFallbackDirsPsr4() … … 153 147 154 148 /** 155 * @return string[] Array of classname => path 156 * @psalm-return array<string, string> 149 * @return array<string, string> Array of classname => path 157 150 */ 158 151 public function getClassMap() … … 162 155 163 156 /** 164 * @param string[] $classMap Class to filename map 165 * @psalm-param array<string, string> $classMap 157 * @param array<string, string> $classMap Class to filename map 166 158 * 167 159 * @return void … … 180 172 * appending or prepending to the ones previously set for this prefix. 181 173 * 182 * @param string $prefix The prefix183 * @param string[]|string $paths The PSR-0 root directories184 * @param bool $prepend Whether to prepend the directories174 * @param string $prefix The prefix 175 * @param list<string>|string $paths The PSR-0 root directories 176 * @param bool $prepend Whether to prepend the directories 185 177 * 186 178 * @return void … … 188 180 public function add($prefix, $paths, $prepend = false) 189 181 { 182 $paths = (array) $paths; 190 183 if (!$prefix) { 191 184 if ($prepend) { 192 185 $this->fallbackDirsPsr0 = array_merge( 193 (array)$paths,186 $paths, 194 187 $this->fallbackDirsPsr0 195 188 ); … … 197 190 $this->fallbackDirsPsr0 = array_merge( 198 191 $this->fallbackDirsPsr0, 199 (array)$paths192 $paths 200 193 ); 201 194 } … … 206 199 $first = $prefix[0]; 207 200 if (!isset($this->prefixesPsr0[$first][$prefix])) { 208 $this->prefixesPsr0[$first][$prefix] = (array)$paths;201 $this->prefixesPsr0[$first][$prefix] = $paths; 209 202 210 203 return; … … 212 205 if ($prepend) { 213 206 $this->prefixesPsr0[$first][$prefix] = array_merge( 214 (array)$paths,207 $paths, 215 208 $this->prefixesPsr0[$first][$prefix] 216 209 ); … … 218 211 $this->prefixesPsr0[$first][$prefix] = array_merge( 219 212 $this->prefixesPsr0[$first][$prefix], 220 (array)$paths213 $paths 221 214 ); 222 215 } … … 227 220 * appending or prepending to the ones previously set for this namespace. 228 221 * 229 * @param string $prefix The prefix/namespace, with trailing '\\'230 * @param string[]|string $paths The PSR-4 base directories231 * @param bool $prepend Whether to prepend the directories222 * @param string $prefix The prefix/namespace, with trailing '\\' 223 * @param list<string>|string $paths The PSR-4 base directories 224 * @param bool $prepend Whether to prepend the directories 232 225 * 233 226 * @throws \InvalidArgumentException … … 237 230 public function addPsr4($prefix, $paths, $prepend = false) 238 231 { 232 $paths = (array) $paths; 239 233 if (!$prefix) { 240 234 // Register directories for the root namespace. 241 235 if ($prepend) { 242 236 $this->fallbackDirsPsr4 = array_merge( 243 (array)$paths,237 $paths, 244 238 $this->fallbackDirsPsr4 245 239 ); … … 247 241 $this->fallbackDirsPsr4 = array_merge( 248 242 $this->fallbackDirsPsr4, 249 (array)$paths243 $paths 250 244 ); 251 245 } … … 257 251 } 258 252 $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; 259 $this->prefixDirsPsr4[$prefix] = (array)$paths;253 $this->prefixDirsPsr4[$prefix] = $paths; 260 254 } elseif ($prepend) { 261 255 // Prepend directories for an already registered namespace. 262 256 $this->prefixDirsPsr4[$prefix] = array_merge( 263 (array)$paths,257 $paths, 264 258 $this->prefixDirsPsr4[$prefix] 265 259 ); … … 268 262 $this->prefixDirsPsr4[$prefix] = array_merge( 269 263 $this->prefixDirsPsr4[$prefix], 270 (array)$paths264 $paths 271 265 ); 272 266 } … … 277 271 * replacing any others previously set for this prefix. 278 272 * 279 * @param string $prefix The prefix280 * @param string[]|string $paths The PSR-0 base directories273 * @param string $prefix The prefix 274 * @param list<string>|string $paths The PSR-0 base directories 281 275 * 282 276 * @return void … … 295 289 * replacing any others previously set for this namespace. 296 290 * 297 * @param string $prefix The prefix/namespace, with trailing '\\'298 * @param string[]|string $paths The PSR-4 base directories291 * @param string $prefix The prefix/namespace, with trailing '\\' 292 * @param list<string>|string $paths The PSR-4 base directories 299 293 * 300 294 * @throws \InvalidArgumentException … … 430 424 { 431 425 if ($file = $this->findFile($class)) { 432 (self::$includeFile)($file); 426 $includeFile = self::$includeFile; 427 $includeFile($file); 433 428 434 429 return true; … … 481 476 482 477 /** 483 * Returns the currently registered loaders indexed by their corresponding vendor directories.484 * 485 * @return self[]478 * Returns the currently registered loaders keyed by their corresponding vendor directories. 479 * 480 * @return array<string, self> 486 481 */ 487 482 public static function getRegisteredLoaders() … … 561 556 } 562 557 563 private static function initializeIncludeClosure(): void 558 /** 559 * @return void 560 */ 561 private static function initializeIncludeClosure() 564 562 { 565 563 if (self::$includeFile !== null) { … … 575 573 * @return void 576 574 */ 577 self::$includeFile = static function($file) {575 self::$includeFile = \Closure::bind(static function($file) { 578 576 include $file; 579 } ;577 }, null, null); 580 578 } 581 579 } -
additional-authors/trunk/additional-authors.php
r2951250 r3012943 11 11 * Text Domain: additional-authors 12 12 * Domain Path: /languages 13 * Version: 1.3. 413 * Version: 1.3.5 14 14 * Requires at least: 5.0 15 * Tested up to: 6. 315 * Tested up to: 6.4.2 16 16 */ 17 17 -
additional-authors/trunk/classes/Assets.php
r2951153 r3012943 19 19 } 20 20 public function enqueueUsersTable(){ 21 $info = include $this->plugin-> path . "/dist/users-table.asset.php";21 $info = include $this->plugin->getPath("/dist/users-table.asset.php"); 22 22 wp_enqueue_script( 23 23 Plugin::HANDLE_USERS_TABLE_JS, 24 $this->plugin-> url . "/dist/users-table.js",24 $this->plugin->getUrl( "/dist/users-table.js"), 25 25 $info["dependencies"], 26 26 $info["version"], … … 40 40 wp_enqueue_style( 41 41 Plugin::HANDLE_META_BOX_CSS, 42 $this->plugin-> url . "/dist/additional-authors-meta-box.css",42 $this->plugin->getUrl("/dist/additional-authors-meta-box.css"), 43 43 [], 44 filemtime($this->plugin-> path."/dist/additional-authors-meta-box.css")44 filemtime($this->plugin->getPath("/dist/additional-authors-meta-box.css")) 45 45 ); 46 $info = include $this->plugin-> path . "/dist/additional-authors-meta-box.asset.php";46 $info = include $this->plugin->getPath("/dist/additional-authors-meta-box.asset.php"); 47 47 wp_enqueue_script( 48 48 Plugin::HANDLE_META_BOX_JS, 49 $this->plugin-> url . "/dist/additional-authors-meta-box.js",49 $this->plugin->getUrl("/dist/additional-authors-meta-box.js"), 50 50 $info["dependencies"], 51 51 $info["version"], … … 58 58 wp_enqueue_style( 59 59 Plugin::HANDLE_GUTENBERG_CSS, 60 $this->plugin-> url . "/dist/additional-authors.css",60 $this->plugin->getUrl( "/dist/additional-authors.css"), 61 61 [], 62 filemtime($this->plugin-> path."/dist/additional-authors.css")62 filemtime($this->plugin->getPath("/dist/additional-authors.css")) 63 63 ); 64 $info = include $this->plugin-> path . "/dist/additional-authors.asset.php";64 $info = include $this->plugin->getPath("/dist/additional-authors.asset.php"); 65 65 wp_enqueue_script( 66 66 Plugin::HANDLE_GUTENBERG_JS, 67 $this->plugin-> url. "/dist/additional-authors.js",67 $this->plugin->getUrl("/dist/additional-authors.js"), 68 68 $info["dependencies"], 69 69 $info["version"] -
additional-authors/trunk/classes/Components/Plugin.php
r2951153 r3012943 5 5 use ReflectionClass; 6 6 use ReflectionException; 7 7 8 /** 8 9 * @version 0.1.4 … … 21 22 */ 22 23 public function __construct() { 23 $this->ref = new ReflectionClass( get_called_class());24 $this->path = plugin_dir_path( $this->ref->getFileName());25 $this->url = plugin_dir_url( $this->ref->getFileName());26 $this->basename = plugin_basename( $this->ref->getFileName());24 $this->ref = new ReflectionClass(get_called_class()); 25 $this->path = plugin_dir_path($this->ref->getFileName()); 26 $this->url = plugin_dir_url($this->ref->getFileName()); 27 $this->basename = plugin_basename($this->ref->getFileName()); 27 28 28 29 $this->tooLateForTextdomain = false; … … 30 31 $this->tooLateForTextdomain = true; 31 32 32 register_activation_hook( $this->ref->getFileName(), array( $this, "onActivation" ));33 register_deactivation_hook( $this->ref->getFileName(), array( $this, "onDeactivation" ));33 register_activation_hook($this->ref->getFileName(), array($this, "onActivation")); 34 register_deactivation_hook($this->ref->getFileName(), array($this, "onDeactivation")); 34 35 36 } 37 38 public function getPath(string $inPluginPath): string { 39 return trailingslashit($this->path) . ltrim($inPluginPath,"/"); 40 } 41 42 public function getUrl(string $inPluginUrl): string { 43 return trailingslashit($this->url) . ltrim($inPluginUrl, "/"); 35 44 } 36 45 … … 40 49 abstract function onCreate(); 41 50 42 public function onActivation( $networkWide) {43 if ( $networkWide) {44 $this->foreachMultisite( [ $this, 'onSiteActivation' ]);51 public function onActivation($networkWide) { 52 if ($networkWide) { 53 $this->foreachMultisite([$this, 'onSiteActivation']); 45 54 } else { 46 55 $this->onSiteActivation(); … … 52 61 } 53 62 54 public function onDeactivation( $networkWide) {55 if ( $networkWide) {56 $this->foreachMultisite( [ $this, 'onSiteDeactivation' ]);63 public function onDeactivation($networkWide) { 64 if ($networkWide) { 65 $this->foreachMultisite([$this, 'onSiteDeactivation']); 57 66 } else { 58 67 $this->onSiteDeactivation(); … … 67 76 // utility methods 68 77 // ----------------------------------------------------------------------------- 69 public function loadTextdomain( string $domain, string $relativeLanguagesPath) {70 if ( $this->tooLateForTextdomain) {71 error_log( "Too late: You need to setTextdomain in onCreate Method of the Plugin class.");78 public function loadTextdomain(string $domain, string $relativeLanguagesPath) { 79 if ($this->tooLateForTextdomain) { 80 error_log("Too late: You need to setTextdomain in onCreate Method of the Plugin class."); 72 81 return; 73 82 } 74 add_action( 'init', function () use ( $domain, $relativeLanguagesPath) {83 add_action('init', function () use ($domain, $relativeLanguagesPath) { 75 84 load_plugin_textdomain( 76 85 $domain, 77 86 false, 78 dirname( plugin_basename( $this->ref->getFileName() )) . "/" . $relativeLanguagesPath87 dirname(plugin_basename($this->ref->getFileName())) . "/" . $relativeLanguagesPath 79 88 ); 80 } );89 }); 81 90 } 82 91 83 public function foreachMultisite(callable $onSite) {84 if ( function_exists( 'is_multisite' ) && is_multisite()) {92 public function foreachMultisite(callable $onSite) { 93 if (function_exists('is_multisite') && is_multisite()) { 85 94 $network_site = get_network()->site_id; 86 $args = array( 'fields' => 'ids');87 $site_ids = get_sites( $args);95 $args = array('fields' => 'ids'); 96 $site_ids = get_sites($args); 88 97 89 98 // run the activation function for each blog id 90 foreach ( $site_ids as $site_id) {91 switch_to_blog( $site_id);99 foreach ($site_ids as $site_id) { 100 switch_to_blog($site_id); 92 101 $onSite(); 93 102 } 94 103 95 104 // switch back to the network site 96 switch_to_blog( $network_site);105 switch_to_blog($network_site); 97 106 } 98 107 } … … 105 114 public static function instance() { 106 115 $class = get_called_class(); 107 if ( ! isset( self::$instances[ $class ] )) {108 self::$instances[ $class] = new static();116 if (!isset(self::$instances[$class])) { 117 self::$instances[$class] = new static(); 109 118 } 110 119 111 return self::$instances[ $class];120 return self::$instances[$class]; 112 121 } 113 122 } -
additional-authors/trunk/classes/Migrate.php
r2951153 r3012943 27 27 */ 28 28 function author_destination(){ 29 require_once( $this->plugin-> path.'/inc/migrate.additional-author-destination.php');29 require_once( $this->plugin->getPath('/inc/migrate.additional-author-destination.php' )); 30 30 } 31 31 -
additional-authors/trunk/classes/Render.php
r2951153 r3012943 63 63 $paths = apply_filters(Plugin::FILTER_TEMPLATE_PATH, array()); 64 64 // add default templates at last position 65 $paths[] = $this->plugin-> path . 'templates';65 $paths[] = $this->plugin->getPath('templates'); 66 66 // find templates 67 67 foreach ($paths as $path){ -
additional-authors/trunk/dist/additional-authors-meta-box.asset.php
r2951153 r3012943 1 <?php return array('dependencies' => array('react', 'react-dom' , 'wp-element'), 'version' => 'b51e0c1c6195b7790636');1 <?php return array('dependencies' => array('react', 'react-dom'), 'version' => '36b1d489b0255fd4c0ee'); -
additional-authors/trunk/dist/additional-authors-meta-box.js
r2951153 r3012943 1 (()=>{var e={ 703:(e,t,n)=>{"use strict";var r=n(414);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,u){if(u!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};n.r(e),n.d(e,{VERSION:()=>a,after:()=>Ut,all:()=>on,allKeys:()=>be,any:()=>un,assign:()=>Ue,before:()=>Bt,bind:()=>jt,bindAll:()=>Mt,chain:()=>St,chunk:()=>Vn,clone:()=>We,collect:()=>Xt,compact:()=>kn,compose:()=>qt,constant:()=>ne,contains:()=>sn,countBy:()=>Sn,create:()=>Le,debounce:()=>Nt,default:()=>zn,defaults:()=>Be,defer:()=>kt,delay:()=>Dt,detect:()=>Jt,difference:()=>Nn,drop:()=>In,each:()=>Qt,escape:()=>lt,every:()=>on,extend:()=>qe,extendOwn:()=>Ue,filter:()=>nn,find:()=>Jt,findIndex:()=>Vt,findKey:()=>Lt,findLastIndex:()=>Kt,findWhere:()=>Yt,first:()=>Mn,flatten:()=>Tn,foldl:()=>en,foldr:()=>tn,forEach:()=>Qt,functions:()=>Re,get:()=>Ge,groupBy:()=>bn,has:()=>He,head:()=>Mn,identity:()=>Je,include:()=>sn,includes:()=>sn,indexBy:()=>wn,indexOf:()=>Gt,initial:()=>An,inject:()=>en,intersection:()=>Un,invert:()=>Ne,invoke:()=>an,isArguments:()=>Z,isArray:()=>Y,isArrayBuffer:()=>L,isBoolean:()=>k,isDataView:()=>J,isDate:()=>q,isElement:()=>T,isEmpty:()=>he,isEqual:()=>_e,isError:()=>B,isFinite:()=>ee,isFunction:()=>K,isMap:()=>Ae,isMatch:()=>pe,isNaN:()=>te,isNull:()=>I,isNumber:()=>P,isObject:()=>M,isRegExp:()=>U,isSet:()=>Ie,isString:()=>R,isSymbol:()=>F,isTypedArray:()=>ae,isUndefined:()=>D,isWeakMap:()=>Me,isWeakSet:()=>De,iteratee:()=>et,keys:()=>fe,last:()=>Dn,lastIndexOf:()=>Ht,map:()=>Xt,mapObject:()=>nt,matcher:()=>Ye,matches:()=>Ye,max:()=>fn,memoize:()=>It,methods:()=>Re,min:()=>hn,mixin:()=>$n,negate:()=>Pt,noop:()=>rt,now:()=>st,object:()=>Ln,omit:()=>Cn,once:()=>Ft,pairs:()=>Te,partial:()=>xt,partition:()=>On,pick:()=>jn,pluck:()=>cn,property:()=>Qe,propertyOf:()=>it,random:()=>ut,range:()=>Wn,reduce:()=>en,reduceRight:()=>tn,reject:()=>rn,rest:()=>In,restArguments:()=>A,result:()=>_t,sample:()=>vn,select:()=>nn,shuffle:()=>mn,size:()=>En,some:()=>un,sortBy:()=>yn,sortedIndex:()=>$t,tail:()=>In,take:()=>Mn,tap:()=>Ve,template:()=>gt,templateSettings:()=>ht,throttle:()=>Tt,times:()=>ot,toArray:()=>dn,toPath:()=>Ke,transpose:()=>Bn,unescape:()=>ft,union:()=>qn,uniq:()=>Pn,unique:()=>Pn,uniqueId:()=>wt,unzip:()=>Bn,values:()=>ke,where:()=>ln,without:()=>Rn,wrap:()=>Rt,zip:()=>Fn});const t=window.wp.element,r=window.ReactDOM;var i=n.n(r);const o=window.React;var u=n(697),s=n.n(u),a="1.13.6",c="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},l=Array.prototype,f=Object.prototype,h="undefined"!=typeof Symbol?Symbol.prototype:null,p=l.push,d=l.slice,v=f.toString,m=f.hasOwnProperty,y="undefined"!=typeof ArrayBuffer,g="undefined"!=typeof DataView,_=Array.isArray,b=Object.keys,w=Object.create,S=y&&ArrayBuffer.isView,O=isNaN,E=isFinite,x=!{toString:null}.propertyIsEnumerable("toString"),j=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],C=Math.pow(2,53)-1;function A(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;i<n;i++)r[i]=arguments[i+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var o=Array(t+1);for(i=0;i<t;i++)o[i]=arguments[i];return o[t]=r,e.apply(this,o)}}function M(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function I(e){return null===e}function D(e){return void 0===e}function k(e){return!0===e||!1===e||"[object Boolean]"===v.call(e)}function T(e){return!(!e||1!==e.nodeType)}function N(e){var t="[object "+e+"]";return function(e){return v.call(e)===t}}const R=N("String"),P=N("Number"),q=N("Date"),U=N("RegExp"),B=N("Error"),F=N("Symbol"),L=N("ArrayBuffer");var W=N("Function"),V=c.document&&c.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof V&&(W=function(e){return"function"==typeof e||!1});const K=W,$=N("Object");var z=g&&$(new DataView(new ArrayBuffer(8))),G="undefined"!=typeof Map&&$(new Map),H=N("DataView");const J=z?function(e){return null!=e&&K(e.getInt8)&&L(e.buffer)}:H,Y=_||N("Array");function Q(e,t){return null!=e&&m.call(e,t)}var X=N("Arguments");!function(){X(arguments)||(X=function(e){return Q(e,"callee")})}();const Z=X;function ee(e){return!F(e)&&E(e)&&!isNaN(parseFloat(e))}function te(e){return P(e)&&O(e)}function ne(e){return function(){return e}}function re(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=C}}function ie(e){return function(t){return null==t?void 0:t[e]}}const oe=ie("byteLength"),ue=re(oe);var se=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;const ae=y?function(e){return S?S(e)&&!J(e):ue(e)&&se.test(v.call(e))}:ne(!1),ce=ie("length");function le(e,t){t=function(e){for(var t={},n=e.length,r=0;r<n;++r)t[e[r]]=!0;return{contains:function(e){return!0===t[e]},push:function(n){return t[n]=!0,e.push(n)}}}(t);var n=j.length,r=e.constructor,i=K(r)&&r.prototype||f,o="constructor";for(Q(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=j[n])in e&&e[o]!==i[o]&&!t.contains(o)&&t.push(o)}function fe(e){if(!M(e))return[];if(b)return b(e);var t=[];for(var n in e)Q(e,n)&&t.push(n);return x&&le(e,t),t}function he(e){if(null==e)return!0;var t=ce(e);return"number"==typeof t&&(Y(e)||R(e)||Z(e))?0===t:0===ce(fe(e))}function pe(e,t){var n=fe(t),r=n.length;if(null==e)return!r;for(var i=Object(e),o=0;o<r;o++){var u=n[o];if(t[u]!==i[u]||!(u in i))return!1}return!0}function de(e){return e instanceof de?e:this instanceof de?void(this._wrapped=e):new de(e)}function ve(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,oe(e))}de.VERSION=a,de.prototype.value=function(){return this._wrapped},de.prototype.valueOf=de.prototype.toJSON=de.prototype.value,de.prototype.toString=function(){return String(this._wrapped)};var me="[object DataView]";function ye(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=typeof e;return("function"===i||"object"===i||"object"==typeof t)&&ge(e,t,n,r)}function ge(e,t,n,r){e instanceof de&&(e=e._wrapped),t instanceof de&&(t=t._wrapped);var i=v.call(e);if(i!==v.call(t))return!1;if(z&&"[object Object]"==i&&J(e)){if(!J(t))return!1;i=me}switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return h.valueOf.call(e)===h.valueOf.call(t);case"[object ArrayBuffer]":case me:return ge(ve(e),ve(t),n,r)}var o="[object Array]"===i;if(!o&&ae(e)){if(oe(e)!==oe(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;o=!0}if(!o){if("object"!=typeof e||"object"!=typeof t)return!1;var u=e.constructor,s=t.constructor;if(u!==s&&!(K(u)&&u instanceof u&&K(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}r=r||[];for(var a=(n=n||[]).length;a--;)if(n[a]===e)return r[a]===t;if(n.push(e),r.push(t),o){if((a=e.length)!==t.length)return!1;for(;a--;)if(!ye(e[a],t[a],n,r))return!1}else{var c,l=fe(e);if(a=l.length,fe(t).length!==a)return!1;for(;a--;)if(!Q(t,c=l[a])||!ye(e[c],t[c],n,r))return!1}return n.pop(),r.pop(),!0}function _e(e,t){return ye(e,t)}function be(e){if(!M(e))return[];var t=[];for(var n in e)t.push(n);return x&&le(e,t),t}function we(e){var t=ce(e);return function(n){if(null==n)return!1;var r=be(n);if(ce(r))return!1;for(var i=0;i<t;i++)if(!K(n[e[i]]))return!1;return e!==je||!K(n[Se])}}var Se="forEach",Oe=["clear","delete"],Ee=["get","has","set"],xe=Oe.concat(Se,Ee),je=Oe.concat(Ee),Ce=["add"].concat(Oe,Se,"has");const Ae=G?we(xe):N("Map"),Me=G?we(je):N("WeakMap"),Ie=G?we(Ce):N("Set"),De=N("WeakSet");function ke(e){for(var t=fe(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=e[t[i]];return r}function Te(e){for(var t=fe(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r}function Ne(e){for(var t={},n=fe(e),r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t}function Re(e){var t=[];for(var n in e)K(e[n])&&t.push(n);return t.sort()}function Pe(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var i=1;i<r;i++)for(var o=arguments[i],u=e(o),s=u.length,a=0;a<s;a++){var c=u[a];t&&void 0!==n[c]||(n[c]=o[c])}return n}}const qe=Pe(be),Ue=Pe(fe),Be=Pe(be,!0);function Fe(e){if(!M(e))return{};if(w)return w(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}function Le(e,t){var n=Fe(e);return t&&Ue(n,t),n}function We(e){return M(e)?Y(e)?e.slice():qe({},e):e}function Ve(e,t){return t(e),e}function Ke(e){return Y(e)?e:[e]}function $e(e){return de.toPath(e)}function ze(e,t){for(var n=t.length,r=0;r<n;r++){if(null==e)return;e=e[t[r]]}return n?e:void 0}function Ge(e,t,n){var r=ze(e,$e(t));return D(r)?n:r}function He(e,t){for(var n=(t=$e(t)).length,r=0;r<n;r++){var i=t[r];if(!Q(e,i))return!1;e=e[i]}return!!n}function Je(e){return e}function Ye(e){return e=Ue({},e),function(t){return pe(t,e)}}function Qe(e){return e=$e(e),function(t){return ze(t,e)}}function Xe(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,o){return e.call(t,n,r,i,o)}}return function(){return e.apply(t,arguments)}}function Ze(e,t,n){return null==e?Je:K(e)?Xe(e,t,n):M(e)&&!Y(e)?Ye(e):Qe(e)}function et(e,t){return Ze(e,t,1/0)}function tt(e,t,n){return de.iteratee!==et?de.iteratee(e,t):Ze(e,t,n)}function nt(e,t,n){t=tt(t,n);for(var r=fe(e),i=r.length,o={},u=0;u<i;u++){var s=r[u];o[s]=t(e[s],s,e)}return o}function rt(){}function it(e){return null==e?rt:function(t){return Ge(e,t)}}function ot(e,t,n){var r=Array(Math.max(0,e));t=Xe(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r}function ut(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}de.toPath=Ke,de.iteratee=et;const st=Date.now||function(){return(new Date).getTime()};function at(e){var t=function(t){return e[t]},n="(?:"+fe(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(i,t):e}}const ct={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},lt=at(ct),ft=at(Ne(ct)),ht=de.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var pt=/(.)^/,dt={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},vt=/\\|'|\r|\n|\u2028|\u2029/g;function mt(e){return"\\"+dt[e]}var yt=/^\s*(\w|\$)+\s*$/;function gt(e,t,n){!t&&n&&(t=n),t=Be({},t,de.templateSettings);var r=RegExp([(t.escape||pt).source,(t.interpolate||pt).source,(t.evaluate||pt).source].join("|")+"|$","g"),i=0,o="__p+='";e.replace(r,(function(t,n,r,u,s){return o+=e.slice(i,s).replace(vt,mt),i=s+t.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":u&&(o+="';\n"+u+"\n__p+='"),t})),o+="';\n";var u,s=t.variable;if(s){if(!yt.test(s))throw new Error("variable is not a bare identifier: "+s)}else o="with(obj||{}){\n"+o+"}\n",s="obj";o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{u=new Function(s,"_",o)}catch(e){throw e.source=o,e}var a=function(e){return u.call(this,e,de)};return a.source="function("+s+"){\n"+o+"}",a}function _t(e,t,n){var r=(t=$e(t)).length;if(!r)return K(n)?n.call(e):n;for(var i=0;i<r;i++){var o=null==e?void 0:e[t[i]];void 0===o&&(o=n,i=r),e=K(o)?o.call(e):o}return e}var bt=0;function wt(e){var t=++bt+"";return e?e+t:t}function St(e){var t=de(e);return t._chain=!0,t}function Ot(e,t,n,r,i){if(!(r instanceof t))return e.apply(n,i);var o=Fe(e.prototype),u=e.apply(o,i);return M(u)?u:o}var Et=A((function(e,t){var n=Et.placeholder,r=function(){for(var i=0,o=t.length,u=Array(o),s=0;s<o;s++)u[s]=t[s]===n?arguments[i++]:t[s];for(;i<arguments.length;)u.push(arguments[i++]);return Ot(e,r,this,this,u)};return r}));Et.placeholder=de;const xt=Et,jt=A((function(e,t,n){if(!K(e))throw new TypeError("Bind must be called on a function");var r=A((function(i){return Ot(e,r,t,this,n.concat(i))}));return r})),Ct=re(ce);function At(e,t,n,r){if(r=r||[],t||0===t){if(t<=0)return r.concat(e)}else t=1/0;for(var i=r.length,o=0,u=ce(e);o<u;o++){var s=e[o];if(Ct(s)&&(Y(s)||Z(s)))if(t>1)At(s,t-1,n,r),i=r.length;else for(var a=0,c=s.length;a<c;)r[i++]=s[a++];else n||(r[i++]=s)}return r}const Mt=A((function(e,t){var n=(t=At(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=jt(e[r],e)}return e}));function It(e,t){var n=function(r){var i=n.cache,o=""+(t?t.apply(this,arguments):r);return Q(i,o)||(i[o]=e.apply(this,arguments)),i[o]};return n.cache={},n}const Dt=A((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})),kt=xt(Dt,de,1);function Tt(e,t,n){var r,i,o,u,s=0;n||(n={});var a=function(){s=!1===n.leading?0:st(),r=null,u=e.apply(i,o),r||(i=o=null)},c=function(){var c=st();s||!1!==n.leading||(s=c);var l=t-(c-s);return i=this,o=arguments,l<=0||l>t?(r&&(clearTimeout(r),r=null),s=c,u=e.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(a,l)),u};return c.cancel=function(){clearTimeout(r),s=0,r=i=o=null},c}function Nt(e,t,n){var r,i,o,u,s,a=function(){var c=st()-i;t>c?r=setTimeout(a,t-c):(r=null,n||(u=e.apply(s,o)),r||(o=s=null))},c=A((function(c){return s=this,o=c,i=st(),r||(r=setTimeout(a,t),n&&(u=e.apply(s,o))),u}));return c.cancel=function(){clearTimeout(r),r=o=s=null},c}function Rt(e,t){return xt(t,e)}function Pt(e){return function(){return!e.apply(this,arguments)}}function qt(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}function Ut(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function Bt(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}const Ft=xt(Bt,2);function Lt(e,t,n){t=tt(t,n);for(var r,i=fe(e),o=0,u=i.length;o<u;o++)if(t(e[r=i[o]],r,e))return r}function Wt(e){return function(t,n,r){n=tt(n,r);for(var i=ce(t),o=e>0?0:i-1;o>=0&&o<i;o+=e)if(n(t[o],o,t))return o;return-1}}const Vt=Wt(1),Kt=Wt(-1);function $t(e,t,n,r){for(var i=(n=tt(n,r,1))(t),o=0,u=ce(e);o<u;){var s=Math.floor((o+u)/2);n(e[s])<i?o=s+1:u=s}return o}function zt(e,t,n){return function(r,i,o){var u=0,s=ce(r);if("number"==typeof o)e>0?u=o>=0?o:Math.max(o+s,u):s=o>=0?Math.min(o+1,s):o+s+1;else if(n&&o&&s)return r[o=n(r,i)]===i?o:-1;if(i!=i)return(o=t(d.call(r,u,s),te))>=0?o+u:-1;for(o=e>0?u:s-1;o>=0&&o<s;o+=e)if(r[o]===i)return o;return-1}}const Gt=zt(1,Vt,$t),Ht=zt(-1,Kt);function Jt(e,t,n){var r=(Ct(e)?Vt:Lt)(e,t,n);if(void 0!==r&&-1!==r)return e[r]}function Yt(e,t){return Jt(e,Ye(t))}function Qt(e,t,n){var r,i;if(t=Xe(t,n),Ct(e))for(r=0,i=e.length;r<i;r++)t(e[r],r,e);else{var o=fe(e);for(r=0,i=o.length;r<i;r++)t(e[o[r]],o[r],e)}return e}function Xt(e,t,n){t=tt(t,n);for(var r=!Ct(e)&&fe(e),i=(r||e).length,o=Array(i),u=0;u<i;u++){var s=r?r[u]:u;o[u]=t(e[s],s,e)}return o}function Zt(e){return function(t,n,r,i){var o=arguments.length>=3;return function(t,n,r,i){var o=!Ct(t)&&fe(t),u=(o||t).length,s=e>0?0:u-1;for(i||(r=t[o?o[s]:s],s+=e);s>=0&&s<u;s+=e){var a=o?o[s]:s;r=n(r,t[a],a,t)}return r}(t,Xe(n,i,4),r,o)}}const en=Zt(1),tn=Zt(-1);function nn(e,t,n){var r=[];return t=tt(t,n),Qt(e,(function(e,n,i){t(e,n,i)&&r.push(e)})),r}function rn(e,t,n){return nn(e,Pt(tt(t)),n)}function on(e,t,n){t=tt(t,n);for(var r=!Ct(e)&&fe(e),i=(r||e).length,o=0;o<i;o++){var u=r?r[o]:o;if(!t(e[u],u,e))return!1}return!0}function un(e,t,n){t=tt(t,n);for(var r=!Ct(e)&&fe(e),i=(r||e).length,o=0;o<i;o++){var u=r?r[o]:o;if(t(e[u],u,e))return!0}return!1}function sn(e,t,n,r){return Ct(e)||(e=ke(e)),("number"!=typeof n||r)&&(n=0),Gt(e,t,n)>=0}const an=A((function(e,t,n){var r,i;return K(t)?i=t:(t=$e(t),r=t.slice(0,-1),t=t[t.length-1]),Xt(e,(function(e){var o=i;if(!o){if(r&&r.length&&(e=ze(e,r)),null==e)return;o=e[t]}return null==o?o:o.apply(e,n)}))}));function cn(e,t){return Xt(e,Qe(t))}function ln(e,t){return nn(e,Ye(t))}function fn(e,t,n){var r,i,o=-1/0,u=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,a=(e=Ct(e)?e:ke(e)).length;s<a;s++)null!=(r=e[s])&&r>o&&(o=r);else t=tt(t,n),Qt(e,(function(e,n,r){((i=t(e,n,r))>u||i===-1/0&&o===-1/0)&&(o=e,u=i)}));return o}function hn(e,t,n){var r,i,o=1/0,u=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,a=(e=Ct(e)?e:ke(e)).length;s<a;s++)null!=(r=e[s])&&r<o&&(o=r);else t=tt(t,n),Qt(e,(function(e,n,r){((i=t(e,n,r))<u||i===1/0&&o===1/0)&&(o=e,u=i)}));return o}var pn=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function dn(e){return e?Y(e)?d.call(e):R(e)?e.match(pn):Ct(e)?Xt(e,Je):ke(e):[]}function vn(e,t,n){if(null==t||n)return Ct(e)||(e=ke(e)),e[ut(e.length-1)];var r=dn(e),i=ce(r);t=Math.max(Math.min(t,i),0);for(var o=i-1,u=0;u<t;u++){var s=ut(u,o),a=r[u];r[u]=r[s],r[s]=a}return r.slice(0,t)}function mn(e){return vn(e,1/0)}function yn(e,t,n){var r=0;return t=tt(t,n),cn(Xt(e,(function(e,n,i){return{value:e,index:r++,criteria:t(e,n,i)}})).sort((function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index})),"value")}function gn(e,t){return function(n,r,i){var o=t?[[],[]]:{};return r=tt(r,i),Qt(n,(function(t,i){var u=r(t,i,n);e(o,t,u)})),o}}const bn=gn((function(e,t,n){Q(e,n)?e[n].push(t):e[n]=[t]})),wn=gn((function(e,t,n){e[n]=t})),Sn=gn((function(e,t,n){Q(e,n)?e[n]++:e[n]=1})),On=gn((function(e,t,n){e[n?0:1].push(t)}),!0);function En(e){return null==e?0:Ct(e)?e.length:fe(e).length}function xn(e,t,n){return t in n}const jn=A((function(e,t){var n={},r=t[0];if(null==e)return n;K(r)?(t.length>1&&(r=Xe(r,t[1])),t=be(e)):(r=xn,t=At(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i<o;i++){var u=t[i],s=e[u];r(s,u,e)&&(n[u]=s)}return n})),Cn=A((function(e,t){var n,r=t[0];return K(r)?(r=Pt(r),t.length>1&&(n=t[1])):(t=Xt(At(t,!1,!1),String),r=function(e,n){return!sn(t,n)}),jn(e,r,n)}));function An(e,t,n){return d.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function Mn(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:An(e,e.length-t)}function In(e,t,n){return d.call(e,null==t||n?1:t)}function Dn(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:In(e,Math.max(0,e.length-t))}function kn(e){return nn(e,Boolean)}function Tn(e,t){return At(e,t,!1)}const Nn=A((function(e,t){return t=At(t,!0,!0),nn(e,(function(e){return!sn(t,e)}))})),Rn=A((function(e,t){return Nn(e,t)}));function Pn(e,t,n,r){k(t)||(r=n,n=t,t=!1),null!=n&&(n=tt(n,r));for(var i=[],o=[],u=0,s=ce(e);u<s;u++){var a=e[u],c=n?n(a,u,e):a;t&&!n?(u&&o===c||i.push(a),o=c):n?sn(o,c)||(o.push(c),i.push(a)):sn(i,a)||i.push(a)}return i}const qn=A((function(e){return Pn(At(e,!0,!0))}));function Un(e){for(var t=[],n=arguments.length,r=0,i=ce(e);r<i;r++){var o=e[r];if(!sn(t,o)){var u;for(u=1;u<n&&sn(arguments[u],o);u++);u===n&&t.push(o)}}return t}function Bn(e){for(var t=e&&fn(e,ce).length||0,n=Array(t),r=0;r<t;r++)n[r]=cn(e,r);return n}const Fn=A(Bn);function Ln(e,t){for(var n={},r=0,i=ce(e);r<i;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n}function Wn(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),i=Array(r),o=0;o<r;o++,e+=n)i[o]=e;return i}function Vn(e,t){if(null==t||t<1)return[];for(var n=[],r=0,i=e.length;r<i;)n.push(d.call(e,r,r+=t));return n}function Kn(e,t){return e._chain?de(t).chain():t}function $n(e){return Qt(Re(e),(function(t){var n=de[t]=e[t];de.prototype[t]=function(){var e=[this._wrapped];return p.apply(e,arguments),Kn(this,n.apply(de,e))}})),de}Qt(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=l[e];de.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),Kn(this,n)}})),Qt(["concat","join","slice"],(function(e){var t=l[e];de.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),Kn(this,e)}}));const zn=de;var Gn=$n(e);Gn._=Gn;const Hn=Gn;class Jn extends o.Component{constructor(e){super(),this.state={over:e.isOver}}componentWillReceiveProps(e){this.state.over=e.isOver}render(){const{display_name:e}=this.props.author;return(0,t.createElement)("div",{onMouseOver:this.onMouseOver.bind(this,!0),onMouseOut:this.onMouseOver.bind(this,!1),onClick:this.onClick.bind(this),className:"additional-authors-search-item "+(this.state.over?"is-over":"")},e)}onMouseOver(e){this.setState({over:e})}onClick(){this.props.onSelect(this.props.author)}}const Yn=Jn;class Qn extends o.Component{constructor(e){super(),this.state={over:e.isOver}}componentWillReceiveProps(e){this.state.over=e.isOver}render(){return(0,t.createElement)("div",{onMouseOver:this.onMouseOver.bind(this,!0),onMouseOut:this.onMouseOver.bind(this,!1),onClick:this.onClick.bind(this),className:"additional-authors-new-item "+(this.state.over?"is-over":"")},'New user "',this.props.name,'"')}onMouseOver(e){this.setState({over:e})}onClick(){this.props.onSelect(this.props.name)}}const Xn=Qn;class Zn extends o.Component{constructor(e){super(e),this.state={query:"",over_index:0,search_result:[],focus:!1}}render(){const{query:e}=this.state;return(0,t.createElement)("div",{className:"additional-authors-search",onKeyUp:this.onKeyUp.bind(this)},(0,t.createElement)("label",null,this.props.languages.label,(0,t.createElement)("br",null),(0,t.createElement)("input",{className:"additional-authors-search__input",type:"text",value:e,onKeyDown:this.onKeyDown.bind(this),onChange:this.onChange.bind(this),onFocus:this.onFocusSearch.bind(this,!0),onBlur:this.onFocusSearch.bind(this,!1)})),this.renderList())}renderList(){const{selected:e}=this.props,{over_index:n,search_result:r,focus:i,query:o}=this.state;if(i){const e=""!==o?(0,t.createElement)(Xn,{name:o,isOver:n===r.length,onSelect:this.onNewItem.bind(this)}):null;return(0,t.createElement)("div",{className:"additional-authors-search-list"},r.map(((e,r)=>(0,t.createElement)(Yn,{key:e.ID,author:e,onSelect:this.onSelect.bind(this,e),isOver:n===r}))),e)}return null}onChange(e){e&&(this.state.query=e.target.value);const{users:t,selected:n}=this.props,{query:r}=this.state;let i=[];if(""!==r){for(let e of t)if(e.display_name.toLowerCase().indexOf(r.toLowerCase())>-1){if(n.indexOf(e.ID+"")>=0||n.indexOf(parseInt(e.ID))>=0)continue;i.unshift(e)}}else i=[];this.setState({over_index:0,search_result:i})}onFocusSearch(e){clearTimeout(this.closeTimeout),e?this.setState({focus:e}):this.closeTimeout=setTimeout((()=>{this.setState({focus:e})}),600)}onSelect(e){this.props.onSelect(e),this.setState({focus:!1}),this.onChange()}onNewItem(e){""!==e&&(this.props.onSelect({ID:0,display_name:e,user_nicename:"-"}),this.setState({query:"",search_result:[]}))}onKeyDown(e){13===e.keyCode&&this.state.focus?(e.preventDefault(),void 0!==this.state.search_result[this.state.over_index]&&this.onSelect(this.state.search_result[this.state.over_index])):this.setState({focus:!0})}onKeyUp(e){this.state.focus&&(27!==e.keyCode?(38===e.keyCode?(e.preventDefault(),this.state.over_index--):40===e.keyCode&&(e.preventDefault(),this.state.over_index++),this.state.over_index>this.state.search_result.length?this.state.over_index=this.state.search_result.length:this.state.over_index<0&&(this.state.over_index=0),this.setState({over_index:this.state.over_index})):this.setState({search_result:[]}))}}Zn.defaultProps={users:[]},Zn.propTypes={users:s().array.isRequired,selected:s().array.isRequired,languages:s().object.isRequired,onSelect:s().func.isRequired};const er=Zn,tr=e=>{let{onClick:n}=e;return(0,t.createElement)("span",{className:"author-item__delete",onClick:n},"×")},nr=e=>{let{author:n}=e;const{ID:r,display_name:i}=n;return r>0?(0,t.createElement)("a",{href:`/wp-admin/user-edit.php?user_id=${r}`,target:"_blank"},i):i},rr=e=>{let{author:n,isMainAuthor:r,index:i,onUnselect:o,onChangePosition:u}=e;return(0,t.createElement)("div",{className:`author-item${r?" is-main-author":""}${n.ID<0?" is-new-author":""}`},(0,t.createElement)("span",{className:"autor-item__name"},(0,t.createElement)(nr,{author:n}),(0,t.createElement)("span",{className:"author-item__nicename"},n.user_nicename)),r?null:(0,t.createElement)(tr,{onClick:o}),(0,t.createElement)("span",{className:"author-item__move author-item__up",onClick:()=>u(i-1)},"▲"),(0,t.createElement)("span",{className:"author-item__move author-item__down",onClick:()=>u(i+1)},"▼"),(0,t.createElement)("input",{type:"hidden",name:"additional_authors[ids][]",value:n.ID}),(0,t.createElement)("input",{type:"hidden",name:"additional_authors[names][]",value:n.display_name}))};rr.defaultProps={author:{ID:-1,display_name:"",user_login:""},className:""},rr.propTypes={author:s().object.isRequired,index:s().number.isRequired,onUnselect:s().func.isRequired,onChangePosition:s().func.isRequired,isMainAuthor:s().bool.isRequired};const ir=rr;class or extends o.Component{constructor(e){super(e),this.state={users:e.users,selected:this.props.selected,new_user_id:-1}}componentDidMount(){this.dispatchChanged(),this.getMainUserControl()}render(){const{language:e,isGutenbergActive:n}=this.props,{selected:r,users:i,new_users:o,main_author:u}=this.state;let s=null;return n&&(s=(0,t.createElement)("input",{type:"hidden",name:"additional_authors_is_gutenberg",value:"it-is"})),r.map((e=>e.ID)),(0,t.createElement)("div",{className:"additional-authors"},s,(0,t.createElement)(er,{users:i,selected:r,languages:e,onSelect:this.onSelect.bind(this)}),(0,t.createElement)("hr",null),(0,t.createElement)("p",null,(0,t.createElement)("i",null,e.description)),(0,t.createElement)("div",null,r.map(((e,r)=>{if(n&&0===r)return null;for(const n in i){if(!i.hasOwnProperty(n))continue;const o=i[n];if(parseInt(o.ID)===parseInt(e))return(0,t.createElement)(ir,{key:e,index:r,author:o,onUnselect:this.onUnselect.bind(this,o),onChangePosition:this.onChangePosition.bind(this,o,r),isMainAuthor:0===r})}return null}))))}onSelect(e){0==e.ID&&(e.ID=this.state.new_user_id--,this.state.users.push(e)),this.state.selected.push(e.ID),this.state.selected=Hn.unique(this.state.selected),this.setState({selected:this.state.selected}),this.dispatchChanged()}onUnselect(e){let t=[];if(this.state.main_author!=e.ID){for(let n of this.state.selected)n!=e.ID&&t.push(n);this.setState({selected:t}),this.dispatchChanged()}else console.log("you cannot delete main author")}onChangePosition(e,t,n){let r=[];if(!(0==n&&e.ID<=0)){for(let e in this.state.selected)this.state.selected.hasOwnProperty(e)&&(e==t?r.push(this.state.selected[n]):e==n?r.push(this.state.selected[t]):r.push(this.state.selected[e]));this.setMainUserID(r[0]),this.setState({selected:r,main_author:this.getMainUserID()}),this.dispatchChanged()}}onMainAuthorChanged(e){const t=e.target.value;let n=0;for(;n<this.state.selected.length;){if(this.state.selected[n]===t){this.state.selected.splice(n,1);break}n++}this.state.selected.unshift(t),this.setState({selected:this.state.selected})}getMainUserControl(){if(this.props.isGutenbergActive)return null;if(null!=this._main_user_select)return this._main_user_select;let e=document.getElementById("post_author_override");return null==e&&(e=document.getElementById("post-author-selector-1")),null!=e&&(this._main_user_select=e,this._main_user_select.addEventListener("change",this.onMainAuthorChanged.bind(this))),this._main_user_select}setMainUserID(e){const t=this.getMainUserControl();void 0!==t&&null!=t&&(t.value=e,t.dispatchEvent(new Event("change")))}getMainUserID(){const e=this.getMainUserControl();return null!=e?e.value:-1}isSelected(e){for(let t of this.state.selected)if(t===e)return!0;return!1}dispatchChanged(){clearTimeout(this.dispatchTimeout),this.dispatchTimeout=setTimeout((()=>{const e=[];for(const t of this.state.selected)for(const n of this.props.users)parseInt(n.ID)===parseInt(t)&&e.push({...n});this.props.onAuthorsChange(e)}),300)}}or.defaultProps={users:[],language:{},onAuthorsChange:()=>{}},or.propTypes={isGutenbergActive:s().bool.isRequired,users:s().array.isRequired,selected:s().array.isRequired,language:s().object.isRequired,onAuthorsChange:s().func};const ur=or;document.addEventListener("DOMContentLoaded",(function(e){const{language:n,users:r,selected:o,root_id:u}=AdditionalAuthors;i().render((0,t.createElement)(ur,{isGutenbergActive:!1,language:n,users:r,selected:o,onAuthorsChange:e=>{document.dispatchEvent(new CustomEvent("onAdditionalAuthorsChange",{detail:e}))}}),document.getElementById(u))}))})()})();1 (()=>{var e={49:(e,t,n)=>{"use strict";var r=n(257);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,u){if(u!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},507:(e,t,n)=>{e.exports=n(49)()},257:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};n.r(e),n.d(e,{VERSION:()=>s,after:()=>qt,all:()=>rn,allKeys:()=>_e,any:()=>on,assign:()=>qe,before:()=>Ut,bind:()=>xt,bindAll:()=>At,chain:()=>wt,chunk:()=>Wn,clone:()=>Le,collect:()=>Qt,compact:()=>Dn,compose:()=>Pt,constant:()=>te,contains:()=>un,countBy:()=>wn,create:()=>Fe,debounce:()=>Tt,default:()=>$n,defaults:()=>Ue,defer:()=>Dt,delay:()=>It,detect:()=>Ht,difference:()=>Tn,drop:()=>Mn,each:()=>Yt,escape:()=>ct,every:()=>rn,extend:()=>Pe,extendOwn:()=>qe,filter:()=>tn,find:()=>Ht,findIndex:()=>Wt,findKey:()=>Ft,findLastIndex:()=>Vt,findWhere:()=>Jt,first:()=>An,flatten:()=>kn,foldl:()=>Zt,foldr:()=>en,forEach:()=>Yt,functions:()=>Ne,get:()=>ze,groupBy:()=>gn,has:()=>Ge,head:()=>An,identity:()=>He,include:()=>un,includes:()=>un,indexBy:()=>bn,indexOf:()=>zt,initial:()=>Cn,inject:()=>Zt,intersection:()=>qn,invert:()=>Te,invoke:()=>sn,isArguments:()=>X,isArray:()=>J,isArrayBuffer:()=>F,isBoolean:()=>D,isDataView:()=>H,isDate:()=>P,isElement:()=>k,isEmpty:()=>fe,isEqual:()=>ge,isError:()=>U,isFinite:()=>Z,isFunction:()=>V,isMap:()=>Ce,isMatch:()=>he,isNaN:()=>ee,isNull:()=>M,isNumber:()=>R,isObject:()=>A,isRegExp:()=>q,isSet:()=>Me,isString:()=>N,isSymbol:()=>B,isTypedArray:()=>se,isUndefined:()=>I,isWeakMap:()=>Ae,isWeakSet:()=>Ie,iteratee:()=>Ze,keys:()=>le,last:()=>In,lastIndexOf:()=>Gt,map:()=>Qt,mapObject:()=>tt,matcher:()=>Je,matches:()=>Je,max:()=>ln,memoize:()=>Mt,methods:()=>Ne,min:()=>fn,mixin:()=>Kn,negate:()=>Rt,noop:()=>nt,now:()=>ut,object:()=>Fn,omit:()=>jn,once:()=>Bt,pairs:()=>ke,partial:()=>Et,partition:()=>Sn,pick:()=>xn,pluck:()=>an,property:()=>Ye,propertyOf:()=>rt,random:()=>ot,range:()=>Ln,reduce:()=>Zt,reduceRight:()=>en,reject:()=>nn,rest:()=>Mn,restArguments:()=>C,result:()=>gt,sample:()=>dn,select:()=>tn,shuffle:()=>vn,size:()=>On,some:()=>on,sortBy:()=>mn,sortedIndex:()=>Kt,tail:()=>Mn,take:()=>An,tap:()=>We,template:()=>yt,templateSettings:()=>ft,throttle:()=>kt,times:()=>it,toArray:()=>pn,toPath:()=>Ve,transpose:()=>Un,unescape:()=>lt,union:()=>Pn,uniq:()=>Rn,unique:()=>Rn,uniqueId:()=>bt,unzip:()=>Un,values:()=>De,where:()=>cn,without:()=>Nn,wrap:()=>Nt,zip:()=>Bn});const t=window.React,r=window.ReactDOM;var i=n.n(r),o=n(507),u=n.n(o),s="1.13.6",a="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},c=Array.prototype,l=Object.prototype,f="undefined"!=typeof Symbol?Symbol.prototype:null,h=c.push,p=c.slice,d=l.toString,v=l.hasOwnProperty,m="undefined"!=typeof ArrayBuffer,y="undefined"!=typeof DataView,g=Array.isArray,_=Object.keys,b=Object.create,w=m&&ArrayBuffer.isView,S=isNaN,O=isFinite,E=!{toString:null}.propertyIsEnumerable("toString"),x=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],j=Math.pow(2,53)-1;function C(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;i<n;i++)r[i]=arguments[i+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var o=Array(t+1);for(i=0;i<t;i++)o[i]=arguments[i];return o[t]=r,e.apply(this,o)}}function A(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function M(e){return null===e}function I(e){return void 0===e}function D(e){return!0===e||!1===e||"[object Boolean]"===d.call(e)}function k(e){return!(!e||1!==e.nodeType)}function T(e){var t="[object "+e+"]";return function(e){return d.call(e)===t}}const N=T("String"),R=T("Number"),P=T("Date"),q=T("RegExp"),U=T("Error"),B=T("Symbol"),F=T("ArrayBuffer");var L=T("Function"),W=a.document&&a.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof W&&(L=function(e){return"function"==typeof e||!1});const V=L,K=T("Object");var $=y&&K(new DataView(new ArrayBuffer(8))),z="undefined"!=typeof Map&&K(new Map),G=T("DataView");const H=$?function(e){return null!=e&&V(e.getInt8)&&F(e.buffer)}:G,J=g||T("Array");function Y(e,t){return null!=e&&v.call(e,t)}var Q=T("Arguments");!function(){Q(arguments)||(Q=function(e){return Y(e,"callee")})}();const X=Q;function Z(e){return!B(e)&&O(e)&&!isNaN(parseFloat(e))}function ee(e){return R(e)&&S(e)}function te(e){return function(){return e}}function ne(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=j}}function re(e){return function(t){return null==t?void 0:t[e]}}const ie=re("byteLength"),oe=ne(ie);var ue=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;const se=m?function(e){return w?w(e)&&!H(e):oe(e)&&ue.test(d.call(e))}:te(!1),ae=re("length");function ce(e,t){t=function(e){for(var t={},n=e.length,r=0;r<n;++r)t[e[r]]=!0;return{contains:function(e){return!0===t[e]},push:function(n){return t[n]=!0,e.push(n)}}}(t);var n=x.length,r=e.constructor,i=V(r)&&r.prototype||l,o="constructor";for(Y(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=x[n])in e&&e[o]!==i[o]&&!t.contains(o)&&t.push(o)}function le(e){if(!A(e))return[];if(_)return _(e);var t=[];for(var n in e)Y(e,n)&&t.push(n);return E&&ce(e,t),t}function fe(e){if(null==e)return!0;var t=ae(e);return"number"==typeof t&&(J(e)||N(e)||X(e))?0===t:0===ae(le(e))}function he(e,t){var n=le(t),r=n.length;if(null==e)return!r;for(var i=Object(e),o=0;o<r;o++){var u=n[o];if(t[u]!==i[u]||!(u in i))return!1}return!0}function pe(e){return e instanceof pe?e:this instanceof pe?void(this._wrapped=e):new pe(e)}function de(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,ie(e))}pe.VERSION=s,pe.prototype.value=function(){return this._wrapped},pe.prototype.valueOf=pe.prototype.toJSON=pe.prototype.value,pe.prototype.toString=function(){return String(this._wrapped)};var ve="[object DataView]";function me(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=typeof e;return("function"===i||"object"===i||"object"==typeof t)&&ye(e,t,n,r)}function ye(e,t,n,r){e instanceof pe&&(e=e._wrapped),t instanceof pe&&(t=t._wrapped);var i=d.call(e);if(i!==d.call(t))return!1;if($&&"[object Object]"==i&&H(e)){if(!H(t))return!1;i=ve}switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return f.valueOf.call(e)===f.valueOf.call(t);case"[object ArrayBuffer]":case ve:return ye(de(e),de(t),n,r)}var o="[object Array]"===i;if(!o&&se(e)){if(ie(e)!==ie(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;o=!0}if(!o){if("object"!=typeof e||"object"!=typeof t)return!1;var u=e.constructor,s=t.constructor;if(u!==s&&!(V(u)&&u instanceof u&&V(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}r=r||[];for(var a=(n=n||[]).length;a--;)if(n[a]===e)return r[a]===t;if(n.push(e),r.push(t),o){if((a=e.length)!==t.length)return!1;for(;a--;)if(!me(e[a],t[a],n,r))return!1}else{var c,l=le(e);if(a=l.length,le(t).length!==a)return!1;for(;a--;)if(!Y(t,c=l[a])||!me(e[c],t[c],n,r))return!1}return n.pop(),r.pop(),!0}function ge(e,t){return me(e,t)}function _e(e){if(!A(e))return[];var t=[];for(var n in e)t.push(n);return E&&ce(e,t),t}function be(e){var t=ae(e);return function(n){if(null==n)return!1;var r=_e(n);if(ae(r))return!1;for(var i=0;i<t;i++)if(!V(n[e[i]]))return!1;return e!==xe||!V(n[we])}}var we="forEach",Se=["clear","delete"],Oe=["get","has","set"],Ee=Se.concat(we,Oe),xe=Se.concat(Oe),je=["add"].concat(Se,we,"has");const Ce=z?be(Ee):T("Map"),Ae=z?be(xe):T("WeakMap"),Me=z?be(je):T("Set"),Ie=T("WeakSet");function De(e){for(var t=le(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=e[t[i]];return r}function ke(e){for(var t=le(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r}function Te(e){for(var t={},n=le(e),r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t}function Ne(e){var t=[];for(var n in e)V(e[n])&&t.push(n);return t.sort()}function Re(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var i=1;i<r;i++)for(var o=arguments[i],u=e(o),s=u.length,a=0;a<s;a++){var c=u[a];t&&void 0!==n[c]||(n[c]=o[c])}return n}}const Pe=Re(_e),qe=Re(le),Ue=Re(_e,!0);function Be(e){if(!A(e))return{};if(b)return b(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}function Fe(e,t){var n=Be(e);return t&&qe(n,t),n}function Le(e){return A(e)?J(e)?e.slice():Pe({},e):e}function We(e,t){return t(e),e}function Ve(e){return J(e)?e:[e]}function Ke(e){return pe.toPath(e)}function $e(e,t){for(var n=t.length,r=0;r<n;r++){if(null==e)return;e=e[t[r]]}return n?e:void 0}function ze(e,t,n){var r=$e(e,Ke(t));return I(r)?n:r}function Ge(e,t){for(var n=(t=Ke(t)).length,r=0;r<n;r++){var i=t[r];if(!Y(e,i))return!1;e=e[i]}return!!n}function He(e){return e}function Je(e){return e=qe({},e),function(t){return he(t,e)}}function Ye(e){return e=Ke(e),function(t){return $e(t,e)}}function Qe(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,o){return e.call(t,n,r,i,o)}}return function(){return e.apply(t,arguments)}}function Xe(e,t,n){return null==e?He:V(e)?Qe(e,t,n):A(e)&&!J(e)?Je(e):Ye(e)}function Ze(e,t){return Xe(e,t,1/0)}function et(e,t,n){return pe.iteratee!==Ze?pe.iteratee(e,t):Xe(e,t,n)}function tt(e,t,n){t=et(t,n);for(var r=le(e),i=r.length,o={},u=0;u<i;u++){var s=r[u];o[s]=t(e[s],s,e)}return o}function nt(){}function rt(e){return null==e?nt:function(t){return ze(e,t)}}function it(e,t,n){var r=Array(Math.max(0,e));t=Qe(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r}function ot(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}pe.toPath=Ve,pe.iteratee=Ze;const ut=Date.now||function(){return(new Date).getTime()};function st(e){var t=function(t){return e[t]},n="(?:"+le(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(i,t):e}}const at={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},ct=st(at),lt=st(Te(at)),ft=pe.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var ht=/(.)^/,pt={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},dt=/\\|'|\r|\n|\u2028|\u2029/g;function vt(e){return"\\"+pt[e]}var mt=/^\s*(\w|\$)+\s*$/;function yt(e,t,n){!t&&n&&(t=n),t=Ue({},t,pe.templateSettings);var r=RegExp([(t.escape||ht).source,(t.interpolate||ht).source,(t.evaluate||ht).source].join("|")+"|$","g"),i=0,o="__p+='";e.replace(r,(function(t,n,r,u,s){return o+=e.slice(i,s).replace(dt,vt),i=s+t.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":u&&(o+="';\n"+u+"\n__p+='"),t})),o+="';\n";var u,s=t.variable;if(s){if(!mt.test(s))throw new Error("variable is not a bare identifier: "+s)}else o="with(obj||{}){\n"+o+"}\n",s="obj";o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{u=new Function(s,"_",o)}catch(e){throw e.source=o,e}var a=function(e){return u.call(this,e,pe)};return a.source="function("+s+"){\n"+o+"}",a}function gt(e,t,n){var r=(t=Ke(t)).length;if(!r)return V(n)?n.call(e):n;for(var i=0;i<r;i++){var o=null==e?void 0:e[t[i]];void 0===o&&(o=n,i=r),e=V(o)?o.call(e):o}return e}var _t=0;function bt(e){var t=++_t+"";return e?e+t:t}function wt(e){var t=pe(e);return t._chain=!0,t}function St(e,t,n,r,i){if(!(r instanceof t))return e.apply(n,i);var o=Be(e.prototype),u=e.apply(o,i);return A(u)?u:o}var Ot=C((function(e,t){var n=Ot.placeholder,r=function(){for(var i=0,o=t.length,u=Array(o),s=0;s<o;s++)u[s]=t[s]===n?arguments[i++]:t[s];for(;i<arguments.length;)u.push(arguments[i++]);return St(e,r,this,this,u)};return r}));Ot.placeholder=pe;const Et=Ot,xt=C((function(e,t,n){if(!V(e))throw new TypeError("Bind must be called on a function");var r=C((function(i){return St(e,r,t,this,n.concat(i))}));return r})),jt=ne(ae);function Ct(e,t,n,r){if(r=r||[],t||0===t){if(t<=0)return r.concat(e)}else t=1/0;for(var i=r.length,o=0,u=ae(e);o<u;o++){var s=e[o];if(jt(s)&&(J(s)||X(s)))if(t>1)Ct(s,t-1,n,r),i=r.length;else for(var a=0,c=s.length;a<c;)r[i++]=s[a++];else n||(r[i++]=s)}return r}const At=C((function(e,t){var n=(t=Ct(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=xt(e[r],e)}return e}));function Mt(e,t){var n=function(r){var i=n.cache,o=""+(t?t.apply(this,arguments):r);return Y(i,o)||(i[o]=e.apply(this,arguments)),i[o]};return n.cache={},n}const It=C((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})),Dt=Et(It,pe,1);function kt(e,t,n){var r,i,o,u,s=0;n||(n={});var a=function(){s=!1===n.leading?0:ut(),r=null,u=e.apply(i,o),r||(i=o=null)},c=function(){var c=ut();s||!1!==n.leading||(s=c);var l=t-(c-s);return i=this,o=arguments,l<=0||l>t?(r&&(clearTimeout(r),r=null),s=c,u=e.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(a,l)),u};return c.cancel=function(){clearTimeout(r),s=0,r=i=o=null},c}function Tt(e,t,n){var r,i,o,u,s,a=function(){var c=ut()-i;t>c?r=setTimeout(a,t-c):(r=null,n||(u=e.apply(s,o)),r||(o=s=null))},c=C((function(c){return s=this,o=c,i=ut(),r||(r=setTimeout(a,t),n&&(u=e.apply(s,o))),u}));return c.cancel=function(){clearTimeout(r),r=o=s=null},c}function Nt(e,t){return Et(t,e)}function Rt(e){return function(){return!e.apply(this,arguments)}}function Pt(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}function qt(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function Ut(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}const Bt=Et(Ut,2);function Ft(e,t,n){t=et(t,n);for(var r,i=le(e),o=0,u=i.length;o<u;o++)if(t(e[r=i[o]],r,e))return r}function Lt(e){return function(t,n,r){n=et(n,r);for(var i=ae(t),o=e>0?0:i-1;o>=0&&o<i;o+=e)if(n(t[o],o,t))return o;return-1}}const Wt=Lt(1),Vt=Lt(-1);function Kt(e,t,n,r){for(var i=(n=et(n,r,1))(t),o=0,u=ae(e);o<u;){var s=Math.floor((o+u)/2);n(e[s])<i?o=s+1:u=s}return o}function $t(e,t,n){return function(r,i,o){var u=0,s=ae(r);if("number"==typeof o)e>0?u=o>=0?o:Math.max(o+s,u):s=o>=0?Math.min(o+1,s):o+s+1;else if(n&&o&&s)return r[o=n(r,i)]===i?o:-1;if(i!=i)return(o=t(p.call(r,u,s),ee))>=0?o+u:-1;for(o=e>0?u:s-1;o>=0&&o<s;o+=e)if(r[o]===i)return o;return-1}}const zt=$t(1,Wt,Kt),Gt=$t(-1,Vt);function Ht(e,t,n){var r=(jt(e)?Wt:Ft)(e,t,n);if(void 0!==r&&-1!==r)return e[r]}function Jt(e,t){return Ht(e,Je(t))}function Yt(e,t,n){var r,i;if(t=Qe(t,n),jt(e))for(r=0,i=e.length;r<i;r++)t(e[r],r,e);else{var o=le(e);for(r=0,i=o.length;r<i;r++)t(e[o[r]],o[r],e)}return e}function Qt(e,t,n){t=et(t,n);for(var r=!jt(e)&&le(e),i=(r||e).length,o=Array(i),u=0;u<i;u++){var s=r?r[u]:u;o[u]=t(e[s],s,e)}return o}function Xt(e){return function(t,n,r,i){var o=arguments.length>=3;return function(t,n,r,i){var o=!jt(t)&&le(t),u=(o||t).length,s=e>0?0:u-1;for(i||(r=t[o?o[s]:s],s+=e);s>=0&&s<u;s+=e){var a=o?o[s]:s;r=n(r,t[a],a,t)}return r}(t,Qe(n,i,4),r,o)}}const Zt=Xt(1),en=Xt(-1);function tn(e,t,n){var r=[];return t=et(t,n),Yt(e,(function(e,n,i){t(e,n,i)&&r.push(e)})),r}function nn(e,t,n){return tn(e,Rt(et(t)),n)}function rn(e,t,n){t=et(t,n);for(var r=!jt(e)&&le(e),i=(r||e).length,o=0;o<i;o++){var u=r?r[o]:o;if(!t(e[u],u,e))return!1}return!0}function on(e,t,n){t=et(t,n);for(var r=!jt(e)&&le(e),i=(r||e).length,o=0;o<i;o++){var u=r?r[o]:o;if(t(e[u],u,e))return!0}return!1}function un(e,t,n,r){return jt(e)||(e=De(e)),("number"!=typeof n||r)&&(n=0),zt(e,t,n)>=0}const sn=C((function(e,t,n){var r,i;return V(t)?i=t:(t=Ke(t),r=t.slice(0,-1),t=t[t.length-1]),Qt(e,(function(e){var o=i;if(!o){if(r&&r.length&&(e=$e(e,r)),null==e)return;o=e[t]}return null==o?o:o.apply(e,n)}))}));function an(e,t){return Qt(e,Ye(t))}function cn(e,t){return tn(e,Je(t))}function ln(e,t,n){var r,i,o=-1/0,u=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,a=(e=jt(e)?e:De(e)).length;s<a;s++)null!=(r=e[s])&&r>o&&(o=r);else t=et(t,n),Yt(e,(function(e,n,r){((i=t(e,n,r))>u||i===-1/0&&o===-1/0)&&(o=e,u=i)}));return o}function fn(e,t,n){var r,i,o=1/0,u=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,a=(e=jt(e)?e:De(e)).length;s<a;s++)null!=(r=e[s])&&r<o&&(o=r);else t=et(t,n),Yt(e,(function(e,n,r){((i=t(e,n,r))<u||i===1/0&&o===1/0)&&(o=e,u=i)}));return o}var hn=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function pn(e){return e?J(e)?p.call(e):N(e)?e.match(hn):jt(e)?Qt(e,He):De(e):[]}function dn(e,t,n){if(null==t||n)return jt(e)||(e=De(e)),e[ot(e.length-1)];var r=pn(e),i=ae(r);t=Math.max(Math.min(t,i),0);for(var o=i-1,u=0;u<t;u++){var s=ot(u,o),a=r[u];r[u]=r[s],r[s]=a}return r.slice(0,t)}function vn(e){return dn(e,1/0)}function mn(e,t,n){var r=0;return t=et(t,n),an(Qt(e,(function(e,n,i){return{value:e,index:r++,criteria:t(e,n,i)}})).sort((function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index})),"value")}function yn(e,t){return function(n,r,i){var o=t?[[],[]]:{};return r=et(r,i),Yt(n,(function(t,i){var u=r(t,i,n);e(o,t,u)})),o}}const gn=yn((function(e,t,n){Y(e,n)?e[n].push(t):e[n]=[t]})),bn=yn((function(e,t,n){e[n]=t})),wn=yn((function(e,t,n){Y(e,n)?e[n]++:e[n]=1})),Sn=yn((function(e,t,n){e[n?0:1].push(t)}),!0);function On(e){return null==e?0:jt(e)?e.length:le(e).length}function En(e,t,n){return t in n}const xn=C((function(e,t){var n={},r=t[0];if(null==e)return n;V(r)?(t.length>1&&(r=Qe(r,t[1])),t=_e(e)):(r=En,t=Ct(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i<o;i++){var u=t[i],s=e[u];r(s,u,e)&&(n[u]=s)}return n})),jn=C((function(e,t){var n,r=t[0];return V(r)?(r=Rt(r),t.length>1&&(n=t[1])):(t=Qt(Ct(t,!1,!1),String),r=function(e,n){return!un(t,n)}),xn(e,r,n)}));function Cn(e,t,n){return p.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function An(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:Cn(e,e.length-t)}function Mn(e,t,n){return p.call(e,null==t||n?1:t)}function In(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:Mn(e,Math.max(0,e.length-t))}function Dn(e){return tn(e,Boolean)}function kn(e,t){return Ct(e,t,!1)}const Tn=C((function(e,t){return t=Ct(t,!0,!0),tn(e,(function(e){return!un(t,e)}))})),Nn=C((function(e,t){return Tn(e,t)}));function Rn(e,t,n,r){D(t)||(r=n,n=t,t=!1),null!=n&&(n=et(n,r));for(var i=[],o=[],u=0,s=ae(e);u<s;u++){var a=e[u],c=n?n(a,u,e):a;t&&!n?(u&&o===c||i.push(a),o=c):n?un(o,c)||(o.push(c),i.push(a)):un(i,a)||i.push(a)}return i}const Pn=C((function(e){return Rn(Ct(e,!0,!0))}));function qn(e){for(var t=[],n=arguments.length,r=0,i=ae(e);r<i;r++){var o=e[r];if(!un(t,o)){var u;for(u=1;u<n&&un(arguments[u],o);u++);u===n&&t.push(o)}}return t}function Un(e){for(var t=e&&ln(e,ae).length||0,n=Array(t),r=0;r<t;r++)n[r]=an(e,r);return n}const Bn=C(Un);function Fn(e,t){for(var n={},r=0,i=ae(e);r<i;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n}function Ln(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),i=Array(r),o=0;o<r;o++,e+=n)i[o]=e;return i}function Wn(e,t){if(null==t||t<1)return[];for(var n=[],r=0,i=e.length;r<i;)n.push(p.call(e,r,r+=t));return n}function Vn(e,t){return e._chain?pe(t).chain():t}function Kn(e){return Yt(Ne(e),(function(t){var n=pe[t]=e[t];pe.prototype[t]=function(){var e=[this._wrapped];return h.apply(e,arguments),Vn(this,n.apply(pe,e))}})),pe}Yt(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=c[e];pe.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),Vn(this,n)}})),Yt(["concat","join","slice"],(function(e){var t=c[e];pe.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),Vn(this,e)}}));const $n=pe;var zn=Kn(e);zn._=zn;const Gn=zn;class Hn extends t.Component{constructor(e){super(),this.state={over:e.isOver}}componentWillReceiveProps(e){this.state.over=e.isOver}render(){const{display_name:e}=this.props.author;return(0,t.createElement)("div",{onMouseOver:this.onMouseOver.bind(this,!0),onMouseOut:this.onMouseOver.bind(this,!1),onClick:this.onClick.bind(this),className:"additional-authors-search-item "+(this.state.over?"is-over":"")},e)}onMouseOver(e){this.setState({over:e})}onClick(){this.props.onSelect(this.props.author)}}const Jn=Hn;class Yn extends t.Component{constructor(e){super(),this.state={over:e.isOver}}componentWillReceiveProps(e){this.state.over=e.isOver}render(){return(0,t.createElement)("div",{onMouseOver:this.onMouseOver.bind(this,!0),onMouseOut:this.onMouseOver.bind(this,!1),onClick:this.onClick.bind(this),className:"additional-authors-new-item "+(this.state.over?"is-over":"")},'New user "',this.props.name,'"')}onMouseOver(e){this.setState({over:e})}onClick(){this.props.onSelect(this.props.name)}}const Qn=Yn;class Xn extends t.Component{constructor(e){super(e),this.state={query:"",over_index:0,search_result:[],focus:!1}}render(){const{query:e}=this.state;return(0,t.createElement)("div",{className:"additional-authors-search",onKeyUp:this.onKeyUp.bind(this)},(0,t.createElement)("label",null,this.props.languages.label,(0,t.createElement)("br",null),(0,t.createElement)("input",{className:"additional-authors-search__input",type:"text",value:e,onKeyDown:this.onKeyDown.bind(this),onChange:this.onChange.bind(this),onFocus:this.onFocusSearch.bind(this,!0),onBlur:this.onFocusSearch.bind(this,!1)})),this.renderList())}renderList(){const{selected:e}=this.props,{over_index:n,search_result:r,focus:i,query:o}=this.state;if(i){const e=""!==o?(0,t.createElement)(Qn,{name:o,isOver:n===r.length,onSelect:this.onNewItem.bind(this)}):null;return(0,t.createElement)("div",{className:"additional-authors-search-list"},r.map(((e,r)=>(0,t.createElement)(Jn,{key:e.ID,author:e,onSelect:this.onSelect.bind(this,e),isOver:n===r}))),e)}return null}onChange(e){e&&(this.state.query=e.target.value);const{users:t,selected:n}=this.props,{query:r}=this.state;let i=[];if(""!==r){for(let e of t)if(e.display_name.toLowerCase().indexOf(r.toLowerCase())>-1){if(n.indexOf(e.ID+"")>=0||n.indexOf(parseInt(e.ID))>=0)continue;i.unshift(e)}}else i=[];this.setState({over_index:0,search_result:i})}onFocusSearch(e){clearTimeout(this.closeTimeout),e?this.setState({focus:e}):this.closeTimeout=setTimeout((()=>{this.setState({focus:e})}),600)}onSelect(e){this.props.onSelect(e),this.setState({focus:!1}),this.onChange()}onNewItem(e){""!==e&&(this.props.onSelect({ID:0,display_name:e,user_nicename:"-"}),this.setState({query:"",search_result:[]}))}onKeyDown(e){13===e.keyCode&&this.state.focus?(e.preventDefault(),void 0!==this.state.search_result[this.state.over_index]&&this.onSelect(this.state.search_result[this.state.over_index])):this.setState({focus:!0})}onKeyUp(e){this.state.focus&&(27!==e.keyCode?(38===e.keyCode?(e.preventDefault(),this.state.over_index--):40===e.keyCode&&(e.preventDefault(),this.state.over_index++),this.state.over_index>this.state.search_result.length?this.state.over_index=this.state.search_result.length:this.state.over_index<0&&(this.state.over_index=0),this.setState({over_index:this.state.over_index})):this.setState({search_result:[]}))}}Xn.defaultProps={users:[]},Xn.propTypes={users:u().array.isRequired,selected:u().array.isRequired,languages:u().object.isRequired,onSelect:u().func.isRequired};const Zn=Xn,er=({onClick:e})=>(0,t.createElement)("span",{className:"author-item__delete",onClick:e},"×"),tr=({author:e})=>{const{ID:n,display_name:r}=e;return n>0?(0,t.createElement)("a",{href:`/wp-admin/user-edit.php?user_id=${n}`,target:"_blank"},r):r},nr=({author:e,isMainAuthor:n,index:r,onUnselect:i,onChangePosition:o})=>(0,t.createElement)("div",{className:`author-item${n?" is-main-author":""}${e.ID<0?" is-new-author":""}`},(0,t.createElement)("span",{className:"autor-item__name"},(0,t.createElement)(tr,{author:e}),(0,t.createElement)("span",{className:"author-item__nicename"},e.user_nicename)),n?null:(0,t.createElement)(er,{onClick:i}),(0,t.createElement)("span",{className:"author-item__move author-item__up",onClick:()=>o(r-1)},"▲"),(0,t.createElement)("span",{className:"author-item__move author-item__down",onClick:()=>o(r+1)},"▼"),(0,t.createElement)("input",{type:"hidden",name:"additional_authors[ids][]",value:e.ID}),(0,t.createElement)("input",{type:"hidden",name:"additional_authors[names][]",value:e.display_name}));nr.defaultProps={author:{ID:-1,display_name:"",user_login:""},className:""},nr.propTypes={author:u().object.isRequired,index:u().number.isRequired,onUnselect:u().func.isRequired,onChangePosition:u().func.isRequired,isMainAuthor:u().bool.isRequired};const rr=nr;class ir extends t.Component{constructor(e){super(e),this.state={users:e.users,selected:this.props.selected,new_user_id:-1}}componentDidMount(){this.dispatchChanged(),this.getMainUserControl()}render(){const{language:e,isGutenbergActive:n}=this.props,{selected:r,users:i,new_users:o,main_author:u}=this.state;let s=null;return n&&(s=(0,t.createElement)("input",{type:"hidden",name:"additional_authors_is_gutenberg",value:"it-is"})),r.map((e=>e.ID)),(0,t.createElement)("div",{className:"additional-authors"},s,(0,t.createElement)(Zn,{users:i,selected:r,languages:e,onSelect:this.onSelect.bind(this)}),(0,t.createElement)("hr",null),(0,t.createElement)("p",null,(0,t.createElement)("i",null,e.description)),(0,t.createElement)("div",null,r.map(((e,r)=>{if(n&&0===r)return null;for(const n in i){if(!i.hasOwnProperty(n))continue;const o=i[n];if(parseInt(o.ID)===parseInt(e))return(0,t.createElement)(rr,{key:e,index:r,author:o,onUnselect:this.onUnselect.bind(this,o),onChangePosition:this.onChangePosition.bind(this,o,r),isMainAuthor:0===r})}return null}))))}onSelect(e){0==e.ID&&(e.ID=this.state.new_user_id--,this.state.users.push(e)),this.state.selected.push(e.ID),this.state.selected=Gn.unique(this.state.selected),this.setState({selected:this.state.selected}),this.dispatchChanged()}onUnselect(e){let t=[];if(this.state.main_author!=e.ID){for(let n of this.state.selected)n!=e.ID&&t.push(n);this.setState({selected:t}),this.dispatchChanged()}else console.log("you cannot delete main author")}onChangePosition(e,t,n){let r=[];if(!(0==n&&e.ID<=0)){for(let e in this.state.selected)this.state.selected.hasOwnProperty(e)&&(e==t?r.push(this.state.selected[n]):e==n?r.push(this.state.selected[t]):r.push(this.state.selected[e]));this.setMainUserID(r[0]),this.setState({selected:r,main_author:this.getMainUserID()}),this.dispatchChanged()}}onMainAuthorChanged(e){const t=e.target.value;let n=0;for(;n<this.state.selected.length;){if(this.state.selected[n]===t){this.state.selected.splice(n,1);break}n++}this.state.selected.unshift(t),this.setState({selected:this.state.selected})}getMainUserControl(){if(this.props.isGutenbergActive)return null;if(null!=this._main_user_select)return this._main_user_select;let e=document.getElementById("post_author_override");return null==e&&(e=document.getElementById("post-author-selector-1")),null!=e&&(this._main_user_select=e,this._main_user_select.addEventListener("change",this.onMainAuthorChanged.bind(this))),this._main_user_select}setMainUserID(e){const t=this.getMainUserControl();void 0!==t&&null!=t&&(t.value=e,t.dispatchEvent(new Event("change")))}getMainUserID(){const e=this.getMainUserControl();return null!=e?e.value:-1}isSelected(e){for(let t of this.state.selected)if(t===e)return!0;return!1}dispatchChanged(){clearTimeout(this.dispatchTimeout),this.dispatchTimeout=setTimeout((()=>{const e=[];for(const t of this.state.selected)for(const n of this.props.users)parseInt(n.ID)===parseInt(t)&&e.push({...n});this.props.onAuthorsChange(e)}),300)}}ir.defaultProps={users:[],language:{},onAuthorsChange:()=>{}},ir.propTypes={isGutenbergActive:u().bool.isRequired,users:u().array.isRequired,selected:u().array.isRequired,language:u().object.isRequired,onAuthorsChange:u().func};const or=ir;document.addEventListener("DOMContentLoaded",(function(e){const{language:n,users:r,selected:o,root_id:u}=AdditionalAuthors;i().render((0,t.createElement)(or,{isGutenbergActive:!1,language:n,users:r,selected:o,onAuthorsChange:e=>{document.dispatchEvent(new CustomEvent("onAdditionalAuthorsChange",{detail:e}))}}),document.getElementById(u))}))})()})(); 2 2 //# sourceMappingURL=additional-authors-meta-box.js.map -
additional-authors/trunk/dist/additional-authors-meta-box.js.map
r2951153 r3012943 1 {"version":3,"file":"additional-authors-meta-box.js","mappings":" wCASA,IAAIA,EAAuB,EAAQ,KAEnC,SAASC,IAAiB,CAC1B,SAASC,IAA0B,CACnCA,EAAuBC,kBAAoBF,EAE3CG,EAAOC,QAAU,WACf,SAASC,EAAKC,EAAOC,EAAUC,EAAeC,EAAUC,EAAcC,GACpE,GAAIA,IAAWZ,EAAf,CAIA,IAAIa,EAAM,IAAIC,MACZ,mLAKF,MADAD,EAAIE,KAAO,sBACLF,CAPN,CAQF,CAEA,SAASG,IACP,OAAOV,CACT,CAHAA,EAAKW,WAAaX,EAMlB,IAAIY,EAAiB,CACnBC,MAAOb,EACPc,OAAQd,EACRe,KAAMf,EACNgB,KAAMhB,EACNiB,OAAQjB,EACRkB,OAAQlB,EACRmB,OAAQnB,EACRoB,OAAQpB,EAERqB,IAAKrB,EACLsB,QAASZ,EACTa,QAASvB,EACTwB,YAAaxB,EACbyB,WAAYf,EACZgB,KAAM1B,EACN2B,SAAUjB,EACVkB,MAAOlB,EACPmB,UAAWnB,EACXoB,MAAOpB,EACPqB,MAAOrB,EAEPsB,eAAgBpC,EAChBC,kBAAmBF,GAKrB,OAFAiB,EAAeqB,UAAYrB,EAEpBA,CACT,C,gBC/CEd,EAAOC,QAAU,EAAQ,IAAR,E,uBCNnBD,EAAOC,QAFoB,8C,GCRvBmC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAatC,QAGrB,IAAID,EAASoC,EAAyBE,GAAY,CAGjDrC,QAAS,CAAC,GAOX,OAHAwC,EAAoBH,GAAUtC,EAAQA,EAAOC,QAASoC,GAG/CrC,EAAOC,OACf,CCrBAoC,EAAoBK,EAAK1C,IACxB,IAAI2C,EAAS3C,GAAUA,EAAO4C,WAC7B,IAAO5C,EAAiB,QACxB,IAAM,EAEP,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AAyDA,EAAQ1Z,OAClE,CACT,CACDga,UAAAA,CAAWH,GACV,IAAI,IAAII,KAAQtX,KAAKmS,MAAM4B,SAC1B,GAAGuD,IAASJ,EAAS,OAAO,EAE7B,OAAO,CACP,CACDxB,eAAAA,GACClJ,aAAaxM,KAAKuX,iBAClBvX,KAAKuX,gBAAkB1L,YAAW,KACjC,MAAMuI,EAAQ,GACd,IAAI,MAAMoD,KAAOxX,KAAKmS,MAAM4B,SAC3B,IAAI,MAAMM,KAAQrU,KAAKtG,MAAM0a,MACzBG,SAASF,EAAKH,MAAQK,SAASiD,IACjCpD,EAAMpW,KAAK,IAAIqW,IAIlBrU,KAAKtG,MAAM+d,gBAAgBrD,EAA3B,GACE,IAEH,EAMFmB,GAAQV,aAAe,CACtBT,MAAO,GACPwB,SAAU,CAAC,EACX6B,gBAAiB,QAMlBlC,GAAQT,UAAY,CACnBe,kBAAmBna,IAAAA,KAAAA,WACnB0Y,MAAO1Y,IAAAA,MAAAA,WACPqY,SAAUrY,IAAAA,MAAAA,WACVka,SAAUla,IAAAA,OAAAA,WACV+b,gBAAiB/b,IAAAA,MAMlB,YC7OAoF,SAASmW,iBAAiB,oBAAoB,SAASS,GAMtD,MAAM,SAAC9B,EAAD,MAAWxB,EAAX,SAAkBL,EAAlB,QAA4B4D,GAAWC,kBAE7CC,IAAAA,QACC,mBAAC,GAAD,CACChC,mBAAmB,EACnBD,SAAUA,EACVxB,MAAOA,EACJL,SAAUA,EACb0D,gBAAkBK,IACjBhX,SAASqW,cAAc,IAAIY,YAAY,4BAA6B,CAAEC,OAAQF,IAA9E,IAGFhX,SAASkW,eAAeW,GAEzB,G","sources":["webpack://@palasthotel/additional-authors/./node_modules/prop-types/factoryWithThrowingShims.js","webpack://@palasthotel/additional-authors/./node_modules/prop-types/index.js","webpack://@palasthotel/additional-authors/./node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack://@palasthotel/additional-authors/webpack/bootstrap","webpack://@palasthotel/additional-authors/webpack/runtime/compat get default export","webpack://@palasthotel/additional-authors/webpack/runtime/define property getters","webpack://@palasthotel/additional-authors/webpack/runtime/hasOwnProperty shorthand","webpack://@palasthotel/additional-authors/webpack/runtime/make namespace object","webpack://@palasthotel/additional-authors/external window [\"wp\",\"element\"]","webpack://@palasthotel/additional-authors/external window \"ReactDOM\"","webpack://@palasthotel/additional-authors/external window \"React\"","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_setup.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/restArguments.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isObject.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isNull.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isUndefined.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isBoolean.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isElement.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_tagTester.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isString.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isNumber.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isDate.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isRegExp.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isError.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isSymbol.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isArrayBuffer.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isFunction.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_hasObjectTag.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_stringTagBug.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isDataView.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isArray.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_has.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isArguments.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isFinite.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isNaN.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/constant.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_createSizePropertyCheck.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_shallowProperty.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_getByteLength.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_isBufferLike.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isTypedArray.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_getLength.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_collectNonEnumProps.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/keys.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isEmpty.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isMatch.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/underscore.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_toBufferView.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isEqual.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/allKeys.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_methodFingerprint.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isMap.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isWeakMap.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isSet.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/isWeakSet.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/values.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/pairs.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/invert.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/functions.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_createAssigner.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/extend.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/extendOwn.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/defaults.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_baseCreate.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/create.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/clone.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/tap.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/toPath.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_toPath.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_deepGet.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/get.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/has.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/identity.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/matcher.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/property.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_optimizeCb.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_baseIteratee.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/iteratee.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_cb.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/mapObject.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/noop.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/propertyOf.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/times.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/random.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/now.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_createEscaper.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_escapeMap.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/escape.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/unescape.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_unescapeMap.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/templateSettings.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/template.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/result.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/uniqueId.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/chain.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_executeBound.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/partial.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/bind.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_isArrayLike.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_flatten.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/bindAll.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/memoize.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/delay.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/defer.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/throttle.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/debounce.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/wrap.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/negate.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/compose.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/after.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/before.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/once.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/findKey.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_createPredicateIndexFinder.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/findIndex.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/findLastIndex.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/sortedIndex.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_createIndexFinder.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/indexOf.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/lastIndexOf.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/find.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/findWhere.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/each.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/map.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_createReduce.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/reduce.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/reduceRight.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/filter.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/reject.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/every.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/some.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/contains.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/invoke.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/pluck.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/where.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/max.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/min.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/toArray.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/sample.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/shuffle.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/sortBy.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_group.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/groupBy.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/indexBy.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/countBy.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/partition.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/size.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_keyInObj.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/pick.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/omit.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/initial.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/first.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/rest.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/last.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/compact.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/flatten.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/difference.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/without.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/uniq.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/union.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/intersection.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/unzip.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/zip.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/object.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/range.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/chunk.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/_chainResult.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/mixin.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/underscore-array-methods.js","webpack://@palasthotel/additional-authors/./node_modules/underscore/modules/index-default.js","webpack://@palasthotel/additional-authors/./src/meta-box/search-item.jsx","webpack://@palasthotel/additional-authors/./src/meta-box/new-item.jsx","webpack://@palasthotel/additional-authors/./src/meta-box/search.jsx","webpack://@palasthotel/additional-authors/./src/meta-box/author-item.jsx","webpack://@palasthotel/additional-authors/./src/meta-box/meta-box.jsx","webpack://@palasthotel/additional-authors/./src/meta-box.js"],"sourcesContent":["/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"element\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"ReactDOM\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"React\"];","// Current version.\nexport var VERSION = '1.13.6';\n\n// Establish the root object, `window` (`self`) in the browser, `global`\n// on the server, or `this` in some virtual machines. We use `self`\n// instead of `window` for `WebWorker` support.\nexport var root = (typeof self == 'object' && self.self === self && self) ||\n (typeof global == 'object' && global.global === global && global) ||\n Function('return this')() ||\n {};\n\n// Save bytes in the minified (but not gzipped) version:\nexport var ArrayProto = Array.prototype, ObjProto = Object.prototype;\nexport var SymbolProto = typeof Symbol !== 'undefined' ? Symbol.prototype : null;\n\n// Create quick reference variables for speed access to core prototypes.\nexport var push = ArrayProto.push,\n slice = ArrayProto.slice,\n toString = ObjProto.toString,\n hasOwnProperty = ObjProto.hasOwnProperty;\n\n// Modern feature detection.\nexport var supportsArrayBuffer = typeof ArrayBuffer !== 'undefined',\n supportsDataView = typeof DataView !== 'undefined';\n\n// All **ECMAScript 5+** native function implementations that we hope to use\n// are declared here.\nexport var nativeIsArray = Array.isArray,\n nativeKeys = Object.keys,\n nativeCreate = Object.create,\n nativeIsView = supportsArrayBuffer && ArrayBuffer.isView;\n\n// Create references to these builtin functions because we override them.\nexport var _isNaN = isNaN,\n _isFinite = isFinite;\n\n// Keys in IE < 9 that won't be iterated by `for key in ...` and thus missed.\nexport var hasEnumBug = !{toString: null}.propertyIsEnumerable('toString');\nexport var nonEnumerableProps = ['valueOf', 'isPrototypeOf', 'toString',\n 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString'];\n\n// The largest integer that can be represented exactly.\nexport var MAX_ARRAY_INDEX = Math.pow(2, 53) - 1;\n","// Some functions take a variable number of arguments, or a few expected\n// arguments at the beginning and then a variable number of values to operate\n// on. This helper accumulates all remaining arguments past the function’s\n// argument length (or an explicit `startIndex`), into an array that becomes\n// the last argument. Similar to ES6’s \"rest parameter\".\nexport default function restArguments(func, startIndex) {\n startIndex = startIndex == null ? func.length - 1 : +startIndex;\n return function() {\n var length = Math.max(arguments.length - startIndex, 0),\n rest = Array(length),\n index = 0;\n for (; index < length; index++) {\n rest[index] = arguments[index + startIndex];\n }\n switch (startIndex) {\n case 0: return func.call(this, rest);\n case 1: return func.call(this, arguments[0], rest);\n case 2: return func.call(this, arguments[0], arguments[1], rest);\n }\n var args = Array(startIndex + 1);\n for (index = 0; index < startIndex; index++) {\n args[index] = arguments[index];\n }\n args[startIndex] = rest;\n return func.apply(this, args);\n };\n}\n","// Is a given variable an object?\nexport default function isObject(obj) {\n var type = typeof obj;\n return type === 'function' || (type === 'object' && !!obj);\n}\n","// Is a given value equal to null?\nexport default function isNull(obj) {\n return obj === null;\n}\n","// Is a given variable undefined?\nexport default function isUndefined(obj) {\n return obj === void 0;\n}\n","import { toString } from './_setup.js';\n\n// Is a given value a boolean?\nexport default function isBoolean(obj) {\n return obj === true || obj === false || toString.call(obj) === '[object Boolean]';\n}\n","// Is a given value a DOM element?\nexport default function isElement(obj) {\n return !!(obj && obj.nodeType === 1);\n}\n","import { toString } from './_setup.js';\n\n// Internal function for creating a `toString`-based type tester.\nexport default function tagTester(name) {\n var tag = '[object ' + name + ']';\n return function(obj) {\n return toString.call(obj) === tag;\n };\n}\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('String');\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('Number');\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('Date');\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('RegExp');\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('Error');\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('Symbol');\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('ArrayBuffer');\n","import tagTester from './_tagTester.js';\nimport { root } from './_setup.js';\n\nvar isFunction = tagTester('Function');\n\n// Optimize `isFunction` if appropriate. Work around some `typeof` bugs in old\n// v8, IE 11 (#1621), Safari 8 (#1929), and PhantomJS (#2236).\nvar nodelist = root.document && root.document.childNodes;\nif (typeof /./ != 'function' && typeof Int8Array != 'object' && typeof nodelist != 'function') {\n isFunction = function(obj) {\n return typeof obj == 'function' || false;\n };\n}\n\nexport default isFunction;\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('Object');\n","import { supportsDataView } from './_setup.js';\nimport hasObjectTag from './_hasObjectTag.js';\n\n// In IE 10 - Edge 13, `DataView` has string tag `'[object Object]'`.\n// In IE 11, the most common among them, this problem also applies to\n// `Map`, `WeakMap` and `Set`.\nexport var hasStringTagBug = (\n supportsDataView && hasObjectTag(new DataView(new ArrayBuffer(8)))\n ),\n isIE11 = (typeof Map !== 'undefined' && hasObjectTag(new Map));\n","import tagTester from './_tagTester.js';\nimport isFunction from './isFunction.js';\nimport isArrayBuffer from './isArrayBuffer.js';\nimport { hasStringTagBug } from './_stringTagBug.js';\n\nvar isDataView = tagTester('DataView');\n\n// In IE 10 - Edge 13, we need a different heuristic\n// to determine whether an object is a `DataView`.\nfunction ie10IsDataView(obj) {\n return obj != null && isFunction(obj.getInt8) && isArrayBuffer(obj.buffer);\n}\n\nexport default (hasStringTagBug ? ie10IsDataView : isDataView);\n","import { nativeIsArray } from './_setup.js';\nimport tagTester from './_tagTester.js';\n\n// Is a given value an array?\n// Delegates to ECMA5's native `Array.isArray`.\nexport default nativeIsArray || tagTester('Array');\n","import { hasOwnProperty } from './_setup.js';\n\n// Internal function to check whether `key` is an own property name of `obj`.\nexport default function has(obj, key) {\n return obj != null && hasOwnProperty.call(obj, key);\n}\n","import tagTester from './_tagTester.js';\nimport has from './_has.js';\n\nvar isArguments = tagTester('Arguments');\n\n// Define a fallback version of the method in browsers (ahem, IE < 9), where\n// there isn't any inspectable \"Arguments\" type.\n(function() {\n if (!isArguments(arguments)) {\n isArguments = function(obj) {\n return has(obj, 'callee');\n };\n }\n}());\n\nexport default isArguments;\n","import { _isFinite } from './_setup.js';\nimport isSymbol from './isSymbol.js';\n\n// Is a given object a finite number?\nexport default function isFinite(obj) {\n return !isSymbol(obj) && _isFinite(obj) && !isNaN(parseFloat(obj));\n}\n","import { _isNaN } from './_setup.js';\nimport isNumber from './isNumber.js';\n\n// Is the given value `NaN`?\nexport default function isNaN(obj) {\n return isNumber(obj) && _isNaN(obj);\n}\n","// Predicate-generating function. Often useful outside of Underscore.\nexport default function constant(value) {\n return function() {\n return value;\n };\n}\n","import { MAX_ARRAY_INDEX } from './_setup.js';\n\n// Common internal logic for `isArrayLike` and `isBufferLike`.\nexport default function createSizePropertyCheck(getSizeProperty) {\n return function(collection) {\n var sizeProperty = getSizeProperty(collection);\n return typeof sizeProperty == 'number' && sizeProperty >= 0 && sizeProperty <= MAX_ARRAY_INDEX;\n }\n}\n","// Internal helper to generate a function to obtain property `key` from `obj`.\nexport default function shallowProperty(key) {\n return function(obj) {\n return obj == null ? void 0 : obj[key];\n };\n}\n","import shallowProperty from './_shallowProperty.js';\n\n// Internal helper to obtain the `byteLength` property of an object.\nexport default shallowProperty('byteLength');\n","import createSizePropertyCheck from './_createSizePropertyCheck.js';\nimport getByteLength from './_getByteLength.js';\n\n// Internal helper to determine whether we should spend extensive checks against\n// `ArrayBuffer` et al.\nexport default createSizePropertyCheck(getByteLength);\n","import { supportsArrayBuffer, nativeIsView, toString } from './_setup.js';\nimport isDataView from './isDataView.js';\nimport constant from './constant.js';\nimport isBufferLike from './_isBufferLike.js';\n\n// Is a given value a typed array?\nvar typedArrayPattern = /\\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\\]/;\nfunction isTypedArray(obj) {\n // `ArrayBuffer.isView` is the most future-proof, so use it when available.\n // Otherwise, fall back on the above regular expression.\n return nativeIsView ? (nativeIsView(obj) && !isDataView(obj)) :\n isBufferLike(obj) && typedArrayPattern.test(toString.call(obj));\n}\n\nexport default supportsArrayBuffer ? isTypedArray : constant(false);\n","import shallowProperty from './_shallowProperty.js';\n\n// Internal helper to obtain the `length` property of an object.\nexport default shallowProperty('length');\n","import { nonEnumerableProps, ObjProto } from './_setup.js';\nimport isFunction from './isFunction.js';\nimport has from './_has.js';\n\n// Internal helper to create a simple lookup structure.\n// `collectNonEnumProps` used to depend on `_.contains`, but this led to\n// circular imports. `emulatedSet` is a one-off solution that only works for\n// arrays of strings.\nfunction emulatedSet(keys) {\n var hash = {};\n for (var l = keys.length, i = 0; i < l; ++i) hash[keys[i]] = true;\n return {\n contains: function(key) { return hash[key] === true; },\n push: function(key) {\n hash[key] = true;\n return keys.push(key);\n }\n };\n}\n\n// Internal helper. Checks `keys` for the presence of keys in IE < 9 that won't\n// be iterated by `for key in ...` and thus missed. Extends `keys` in place if\n// needed.\nexport default function collectNonEnumProps(obj, keys) {\n keys = emulatedSet(keys);\n var nonEnumIdx = nonEnumerableProps.length;\n var constructor = obj.constructor;\n var proto = (isFunction(constructor) && constructor.prototype) || ObjProto;\n\n // Constructor is a special case.\n var prop = 'constructor';\n if (has(obj, prop) && !keys.contains(prop)) keys.push(prop);\n\n while (nonEnumIdx--) {\n prop = nonEnumerableProps[nonEnumIdx];\n if (prop in obj && obj[prop] !== proto[prop] && !keys.contains(prop)) {\n keys.push(prop);\n }\n }\n}\n","import isObject from './isObject.js';\nimport { nativeKeys, hasEnumBug } from './_setup.js';\nimport has from './_has.js';\nimport collectNonEnumProps from './_collectNonEnumProps.js';\n\n// Retrieve the names of an object's own properties.\n// Delegates to **ECMAScript 5**'s native `Object.keys`.\nexport default function keys(obj) {\n if (!isObject(obj)) return [];\n if (nativeKeys) return nativeKeys(obj);\n var keys = [];\n for (var key in obj) if (has(obj, key)) keys.push(key);\n // Ahem, IE < 9.\n if (hasEnumBug) collectNonEnumProps(obj, keys);\n return keys;\n}\n","import getLength from './_getLength.js';\nimport isArray from './isArray.js';\nimport isString from './isString.js';\nimport isArguments from './isArguments.js';\nimport keys from './keys.js';\n\n// Is a given array, string, or object empty?\n// An \"empty\" object has no enumerable own-properties.\nexport default function isEmpty(obj) {\n if (obj == null) return true;\n // Skip the more expensive `toString`-based type checks if `obj` has no\n // `.length`.\n var length = getLength(obj);\n if (typeof length == 'number' && (\n isArray(obj) || isString(obj) || isArguments(obj)\n )) return length === 0;\n return getLength(keys(obj)) === 0;\n}\n","import keys from './keys.js';\n\n// Returns whether an object has a given set of `key:value` pairs.\nexport default function isMatch(object, attrs) {\n var _keys = keys(attrs), length = _keys.length;\n if (object == null) return !length;\n var obj = Object(object);\n for (var i = 0; i < length; i++) {\n var key = _keys[i];\n if (attrs[key] !== obj[key] || !(key in obj)) return false;\n }\n return true;\n}\n","import { VERSION } from './_setup.js';\n\n// If Underscore is called as a function, it returns a wrapped object that can\n// be used OO-style. This wrapper holds altered versions of all functions added\n// through `_.mixin`. Wrapped objects may be chained.\nexport default function _(obj) {\n if (obj instanceof _) return obj;\n if (!(this instanceof _)) return new _(obj);\n this._wrapped = obj;\n}\n\n_.VERSION = VERSION;\n\n// Extracts the result from a wrapped and chained object.\n_.prototype.value = function() {\n return this._wrapped;\n};\n\n// Provide unwrapping proxies for some methods used in engine operations\n// such as arithmetic and JSON stringification.\n_.prototype.valueOf = _.prototype.toJSON = _.prototype.value;\n\n_.prototype.toString = function() {\n return String(this._wrapped);\n};\n","import getByteLength from './_getByteLength.js';\n\n// Internal function to wrap or shallow-copy an ArrayBuffer,\n// typed array or DataView to a new view, reusing the buffer.\nexport default function toBufferView(bufferSource) {\n return new Uint8Array(\n bufferSource.buffer || bufferSource,\n bufferSource.byteOffset || 0,\n getByteLength(bufferSource)\n );\n}\n","import _ from './underscore.js';\nimport { toString, SymbolProto } from './_setup.js';\nimport getByteLength from './_getByteLength.js';\nimport isTypedArray from './isTypedArray.js';\nimport isFunction from './isFunction.js';\nimport { hasStringTagBug } from './_stringTagBug.js';\nimport isDataView from './isDataView.js';\nimport keys from './keys.js';\nimport has from './_has.js';\nimport toBufferView from './_toBufferView.js';\n\n// We use this string twice, so give it a name for minification.\nvar tagDataView = '[object DataView]';\n\n// Internal recursive comparison function for `_.isEqual`.\nfunction eq(a, b, aStack, bStack) {\n // Identical objects are equal. `0 === -0`, but they aren't identical.\n // See the [Harmony `egal` proposal](https://wiki.ecmascript.org/doku.php?id=harmony:egal).\n if (a === b) return a !== 0 || 1 / a === 1 / b;\n // `null` or `undefined` only equal to itself (strict comparison).\n if (a == null || b == null) return false;\n // `NaN`s are equivalent, but non-reflexive.\n if (a !== a) return b !== b;\n // Exhaust primitive checks\n var type = typeof a;\n if (type !== 'function' && type !== 'object' && typeof b != 'object') return false;\n return deepEq(a, b, aStack, bStack);\n}\n\n// Internal recursive comparison function for `_.isEqual`.\nfunction deepEq(a, b, aStack, bStack) {\n // Unwrap any wrapped objects.\n if (a instanceof _) a = a._wrapped;\n if (b instanceof _) b = b._wrapped;\n // Compare `[[Class]]` names.\n var className = toString.call(a);\n if (className !== toString.call(b)) return false;\n // Work around a bug in IE 10 - Edge 13.\n if (hasStringTagBug && className == '[object Object]' && isDataView(a)) {\n if (!isDataView(b)) return false;\n className = tagDataView;\n }\n switch (className) {\n // These types are compared by value.\n case '[object RegExp]':\n // RegExps are coerced to strings for comparison (Note: '' + /a/i === '/a/i')\n case '[object String]':\n // Primitives and their corresponding object wrappers are equivalent; thus, `\"5\"` is\n // equivalent to `new String(\"5\")`.\n return '' + a === '' + b;\n case '[object Number]':\n // `NaN`s are equivalent, but non-reflexive.\n // Object(NaN) is equivalent to NaN.\n if (+a !== +a) return +b !== +b;\n // An `egal` comparison is performed for other numeric values.\n return +a === 0 ? 1 / +a === 1 / b : +a === +b;\n case '[object Date]':\n case '[object Boolean]':\n // Coerce dates and booleans to numeric primitive values. Dates are compared by their\n // millisecond representations. Note that invalid dates with millisecond representations\n // of `NaN` are not equivalent.\n return +a === +b;\n case '[object Symbol]':\n return SymbolProto.valueOf.call(a) === SymbolProto.valueOf.call(b);\n case '[object ArrayBuffer]':\n case tagDataView:\n // Coerce to typed array so we can fall through.\n return deepEq(toBufferView(a), toBufferView(b), aStack, bStack);\n }\n\n var areArrays = className === '[object Array]';\n if (!areArrays && isTypedArray(a)) {\n var byteLength = getByteLength(a);\n if (byteLength !== getByteLength(b)) return false;\n if (a.buffer === b.buffer && a.byteOffset === b.byteOffset) return true;\n areArrays = true;\n }\n if (!areArrays) {\n if (typeof a != 'object' || typeof b != 'object') return false;\n\n // Objects with different constructors are not equivalent, but `Object`s or `Array`s\n // from different frames are.\n var aCtor = a.constructor, bCtor = b.constructor;\n if (aCtor !== bCtor && !(isFunction(aCtor) && aCtor instanceof aCtor &&\n isFunction(bCtor) && bCtor instanceof bCtor)\n && ('constructor' in a && 'constructor' in b)) {\n return false;\n }\n }\n // Assume equality for cyclic structures. The algorithm for detecting cyclic\n // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.\n\n // Initializing stack of traversed objects.\n // It's done here since we only need them for objects and arrays comparison.\n aStack = aStack || [];\n bStack = bStack || [];\n var length = aStack.length;\n while (length--) {\n // Linear search. Performance is inversely proportional to the number of\n // unique nested structures.\n if (aStack[length] === a) return bStack[length] === b;\n }\n\n // Add the first object to the stack of traversed objects.\n aStack.push(a);\n bStack.push(b);\n\n // Recursively compare objects and arrays.\n if (areArrays) {\n // Compare array lengths to determine if a deep comparison is necessary.\n length = a.length;\n if (length !== b.length) return false;\n // Deep compare the contents, ignoring non-numeric properties.\n while (length--) {\n if (!eq(a[length], b[length], aStack, bStack)) return false;\n }\n } else {\n // Deep compare objects.\n var _keys = keys(a), key;\n length = _keys.length;\n // Ensure that both objects contain the same number of properties before comparing deep equality.\n if (keys(b).length !== length) return false;\n while (length--) {\n // Deep compare each member\n key = _keys[length];\n if (!(has(b, key) && eq(a[key], b[key], aStack, bStack))) return false;\n }\n }\n // Remove the first object from the stack of traversed objects.\n aStack.pop();\n bStack.pop();\n return true;\n}\n\n// Perform a deep comparison to check if two objects are equal.\nexport default function isEqual(a, b) {\n return eq(a, b);\n}\n","import isObject from './isObject.js';\nimport { hasEnumBug } from './_setup.js';\nimport collectNonEnumProps from './_collectNonEnumProps.js';\n\n// Retrieve all the enumerable property names of an object.\nexport default function allKeys(obj) {\n if (!isObject(obj)) return [];\n var keys = [];\n for (var key in obj) keys.push(key);\n // Ahem, IE < 9.\n if (hasEnumBug) collectNonEnumProps(obj, keys);\n return keys;\n}\n","import getLength from './_getLength.js';\nimport isFunction from './isFunction.js';\nimport allKeys from './allKeys.js';\n\n// Since the regular `Object.prototype.toString` type tests don't work for\n// some types in IE 11, we use a fingerprinting heuristic instead, based\n// on the methods. It's not great, but it's the best we got.\n// The fingerprint method lists are defined below.\nexport function ie11fingerprint(methods) {\n var length = getLength(methods);\n return function(obj) {\n if (obj == null) return false;\n // `Map`, `WeakMap` and `Set` have no enumerable keys.\n var keys = allKeys(obj);\n if (getLength(keys)) return false;\n for (var i = 0; i < length; i++) {\n if (!isFunction(obj[methods[i]])) return false;\n }\n // If we are testing against `WeakMap`, we need to ensure that\n // `obj` doesn't have a `forEach` method in order to distinguish\n // it from a regular `Map`.\n return methods !== weakMapMethods || !isFunction(obj[forEachName]);\n };\n}\n\n// In the interest of compact minification, we write\n// each string in the fingerprints only once.\nvar forEachName = 'forEach',\n hasName = 'has',\n commonInit = ['clear', 'delete'],\n mapTail = ['get', hasName, 'set'];\n\n// `Map`, `WeakMap` and `Set` each have slightly different\n// combinations of the above sublists.\nexport var mapMethods = commonInit.concat(forEachName, mapTail),\n weakMapMethods = commonInit.concat(mapTail),\n setMethods = ['add'].concat(commonInit, forEachName, hasName);\n","import tagTester from './_tagTester.js';\nimport { isIE11 } from './_stringTagBug.js';\nimport { ie11fingerprint, mapMethods } from './_methodFingerprint.js';\n\nexport default isIE11 ? ie11fingerprint(mapMethods) : tagTester('Map');\n","import tagTester from './_tagTester.js';\nimport { isIE11 } from './_stringTagBug.js';\nimport { ie11fingerprint, weakMapMethods } from './_methodFingerprint.js';\n\nexport default isIE11 ? ie11fingerprint(weakMapMethods) : tagTester('WeakMap');\n","import tagTester from './_tagTester.js';\nimport { isIE11 } from './_stringTagBug.js';\nimport { ie11fingerprint, setMethods } from './_methodFingerprint.js';\n\nexport default isIE11 ? ie11fingerprint(setMethods) : tagTester('Set');\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('WeakSet');\n","import keys from './keys.js';\n\n// Retrieve the values of an object's properties.\nexport default function values(obj) {\n var _keys = keys(obj);\n var length = _keys.length;\n var values = Array(length);\n for (var i = 0; i < length; i++) {\n values[i] = obj[_keys[i]];\n }\n return values;\n}\n","import keys from './keys.js';\n\n// Convert an object into a list of `[key, value]` pairs.\n// The opposite of `_.object` with one argument.\nexport default function pairs(obj) {\n var _keys = keys(obj);\n var length = _keys.length;\n var pairs = Array(length);\n for (var i = 0; i < length; i++) {\n pairs[i] = [_keys[i], obj[_keys[i]]];\n }\n return pairs;\n}\n","import keys from './keys.js';\n\n// Invert the keys and values of an object. The values must be serializable.\nexport default function invert(obj) {\n var result = {};\n var _keys = keys(obj);\n for (var i = 0, length = _keys.length; i < length; i++) {\n result[obj[_keys[i]]] = _keys[i];\n }\n return result;\n}\n","import isFunction from './isFunction.js';\n\n// Return a sorted list of the function names available on the object.\nexport default function functions(obj) {\n var names = [];\n for (var key in obj) {\n if (isFunction(obj[key])) names.push(key);\n }\n return names.sort();\n}\n","// An internal function for creating assigner functions.\nexport default function createAssigner(keysFunc, defaults) {\n return function(obj) {\n var length = arguments.length;\n if (defaults) obj = Object(obj);\n if (length < 2 || obj == null) return obj;\n for (var index = 1; index < length; index++) {\n var source = arguments[index],\n keys = keysFunc(source),\n l = keys.length;\n for (var i = 0; i < l; i++) {\n var key = keys[i];\n if (!defaults || obj[key] === void 0) obj[key] = source[key];\n }\n }\n return obj;\n };\n}\n","import createAssigner from './_createAssigner.js';\nimport allKeys from './allKeys.js';\n\n// Extend a given object with all the properties in passed-in object(s).\nexport default createAssigner(allKeys);\n","import createAssigner from './_createAssigner.js';\nimport keys from './keys.js';\n\n// Assigns a given object with all the own properties in the passed-in\n// object(s).\n// (https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/assign)\nexport default createAssigner(keys);\n","import createAssigner from './_createAssigner.js';\nimport allKeys from './allKeys.js';\n\n// Fill in a given object with default properties.\nexport default createAssigner(allKeys, true);\n","import isObject from './isObject.js';\nimport { nativeCreate } from './_setup.js';\n\n// Create a naked function reference for surrogate-prototype-swapping.\nfunction ctor() {\n return function(){};\n}\n\n// An internal function for creating a new object that inherits from another.\nexport default function baseCreate(prototype) {\n if (!isObject(prototype)) return {};\n if (nativeCreate) return nativeCreate(prototype);\n var Ctor = ctor();\n Ctor.prototype = prototype;\n var result = new Ctor;\n Ctor.prototype = null;\n return result;\n}\n","import baseCreate from './_baseCreate.js';\nimport extendOwn from './extendOwn.js';\n\n// Creates an object that inherits from the given prototype object.\n// If additional properties are provided then they will be added to the\n// created object.\nexport default function create(prototype, props) {\n var result = baseCreate(prototype);\n if (props) extendOwn(result, props);\n return result;\n}\n","import isObject from './isObject.js';\nimport isArray from './isArray.js';\nimport extend from './extend.js';\n\n// Create a (shallow-cloned) duplicate of an object.\nexport default function clone(obj) {\n if (!isObject(obj)) return obj;\n return isArray(obj) ? obj.slice() : extend({}, obj);\n}\n","// Invokes `interceptor` with the `obj` and then returns `obj`.\n// The primary purpose of this method is to \"tap into\" a method chain, in\n// order to perform operations on intermediate results within the chain.\nexport default function tap(obj, interceptor) {\n interceptor(obj);\n return obj;\n}\n","import _ from './underscore.js';\nimport isArray from './isArray.js';\n\n// Normalize a (deep) property `path` to array.\n// Like `_.iteratee`, this function can be customized.\nexport default function toPath(path) {\n return isArray(path) ? path : [path];\n}\n_.toPath = toPath;\n","import _ from './underscore.js';\nimport './toPath.js';\n\n// Internal wrapper for `_.toPath` to enable minification.\n// Similar to `cb` for `_.iteratee`.\nexport default function toPath(path) {\n return _.toPath(path);\n}\n","// Internal function to obtain a nested property in `obj` along `path`.\nexport default function deepGet(obj, path) {\n var length = path.length;\n for (var i = 0; i < length; i++) {\n if (obj == null) return void 0;\n obj = obj[path[i]];\n }\n return length ? obj : void 0;\n}\n","import toPath from './_toPath.js';\nimport deepGet from './_deepGet.js';\nimport isUndefined from './isUndefined.js';\n\n// Get the value of the (deep) property on `path` from `object`.\n// If any property in `path` does not exist or if the value is\n// `undefined`, return `defaultValue` instead.\n// The `path` is normalized through `_.toPath`.\nexport default function get(object, path, defaultValue) {\n var value = deepGet(object, toPath(path));\n return isUndefined(value) ? defaultValue : value;\n}\n","import _has from './_has.js';\nimport toPath from './_toPath.js';\n\n// Shortcut function for checking if an object has a given property directly on\n// itself (in other words, not on a prototype). Unlike the internal `has`\n// function, this public version can also traverse nested properties.\nexport default function has(obj, path) {\n path = toPath(path);\n var length = path.length;\n for (var i = 0; i < length; i++) {\n var key = path[i];\n if (!_has(obj, key)) return false;\n obj = obj[key];\n }\n return !!length;\n}\n","// Keep the identity function around for default iteratees.\nexport default function identity(value) {\n return value;\n}\n","import extendOwn from './extendOwn.js';\nimport isMatch from './isMatch.js';\n\n// Returns a predicate for checking whether an object has a given set of\n// `key:value` pairs.\nexport default function matcher(attrs) {\n attrs = extendOwn({}, attrs);\n return function(obj) {\n return isMatch(obj, attrs);\n };\n}\n","import deepGet from './_deepGet.js';\nimport toPath from './_toPath.js';\n\n// Creates a function that, when passed an object, will traverse that object’s\n// properties down the given `path`, specified as an array of keys or indices.\nexport default function property(path) {\n path = toPath(path);\n return function(obj) {\n return deepGet(obj, path);\n };\n}\n","// Internal function that returns an efficient (for current engines) version\n// of the passed-in callback, to be repeatedly applied in other Underscore\n// functions.\nexport default function optimizeCb(func, context, argCount) {\n if (context === void 0) return func;\n switch (argCount == null ? 3 : argCount) {\n case 1: return function(value) {\n return func.call(context, value);\n };\n // The 2-argument case is omitted because we’re not using it.\n case 3: return function(value, index, collection) {\n return func.call(context, value, index, collection);\n };\n case 4: return function(accumulator, value, index, collection) {\n return func.call(context, accumulator, value, index, collection);\n };\n }\n return function() {\n return func.apply(context, arguments);\n };\n}\n","import identity from './identity.js';\nimport isFunction from './isFunction.js';\nimport isObject from './isObject.js';\nimport isArray from './isArray.js';\nimport matcher from './matcher.js';\nimport property from './property.js';\nimport optimizeCb from './_optimizeCb.js';\n\n// An internal function to generate callbacks that can be applied to each\n// element in a collection, returning the desired result — either `_.identity`,\n// an arbitrary callback, a property matcher, or a property accessor.\nexport default function baseIteratee(value, context, argCount) {\n if (value == null) return identity;\n if (isFunction(value)) return optimizeCb(value, context, argCount);\n if (isObject(value) && !isArray(value)) return matcher(value);\n return property(value);\n}\n","import _ from './underscore.js';\nimport baseIteratee from './_baseIteratee.js';\n\n// External wrapper for our callback generator. Users may customize\n// `_.iteratee` if they want additional predicate/iteratee shorthand styles.\n// This abstraction hides the internal-only `argCount` argument.\nexport default function iteratee(value, context) {\n return baseIteratee(value, context, Infinity);\n}\n_.iteratee = iteratee;\n","import _ from './underscore.js';\nimport baseIteratee from './_baseIteratee.js';\nimport iteratee from './iteratee.js';\n\n// The function we call internally to generate a callback. It invokes\n// `_.iteratee` if overridden, otherwise `baseIteratee`.\nexport default function cb(value, context, argCount) {\n if (_.iteratee !== iteratee) return _.iteratee(value, context);\n return baseIteratee(value, context, argCount);\n}\n","import cb from './_cb.js';\nimport keys from './keys.js';\n\n// Returns the results of applying the `iteratee` to each element of `obj`.\n// In contrast to `_.map` it returns an object.\nexport default function mapObject(obj, iteratee, context) {\n iteratee = cb(iteratee, context);\n var _keys = keys(obj),\n length = _keys.length,\n results = {};\n for (var index = 0; index < length; index++) {\n var currentKey = _keys[index];\n results[currentKey] = iteratee(obj[currentKey], currentKey, obj);\n }\n return results;\n}\n","// Predicate-generating function. Often useful outside of Underscore.\nexport default function noop(){}\n","import noop from './noop.js';\nimport get from './get.js';\n\n// Generates a function for a given object that returns a given property.\nexport default function propertyOf(obj) {\n if (obj == null) return noop;\n return function(path) {\n return get(obj, path);\n };\n}\n","import optimizeCb from './_optimizeCb.js';\n\n// Run a function **n** times.\nexport default function times(n, iteratee, context) {\n var accum = Array(Math.max(0, n));\n iteratee = optimizeCb(iteratee, context, 1);\n for (var i = 0; i < n; i++) accum[i] = iteratee(i);\n return accum;\n}\n","// Return a random integer between `min` and `max` (inclusive).\nexport default function random(min, max) {\n if (max == null) {\n max = min;\n min = 0;\n }\n return min + Math.floor(Math.random() * (max - min + 1));\n}\n","// A (possibly faster) way to get the current timestamp as an integer.\nexport default Date.now || function() {\n return new Date().getTime();\n};\n","import keys from './keys.js';\n\n// Internal helper to generate functions for escaping and unescaping strings\n// to/from HTML interpolation.\nexport default function createEscaper(map) {\n var escaper = function(match) {\n return map[match];\n };\n // Regexes for identifying a key that needs to be escaped.\n var source = '(?:' + keys(map).join('|') + ')';\n var testRegexp = RegExp(source);\n var replaceRegexp = RegExp(source, 'g');\n return function(string) {\n string = string == null ? '' : '' + string;\n return testRegexp.test(string) ? string.replace(replaceRegexp, escaper) : string;\n };\n}\n","// Internal list of HTML entities for escaping.\nexport default {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n \"'\": ''',\n '`': '`'\n};\n","import createEscaper from './_createEscaper.js';\nimport escapeMap from './_escapeMap.js';\n\n// Function for escaping strings to HTML interpolation.\nexport default createEscaper(escapeMap);\n","import createEscaper from './_createEscaper.js';\nimport unescapeMap from './_unescapeMap.js';\n\n// Function for unescaping strings from HTML interpolation.\nexport default createEscaper(unescapeMap);\n","import invert from './invert.js';\nimport escapeMap from './_escapeMap.js';\n\n// Internal list of HTML entities for unescaping.\nexport default invert(escapeMap);\n","import _ from './underscore.js';\n\n// By default, Underscore uses ERB-style template delimiters. Change the\n// following template settings to use alternative delimiters.\nexport default _.templateSettings = {\n evaluate: /<%([\\s\\S]+?)%>/g,\n interpolate: /<%=([\\s\\S]+?)%>/g,\n escape: /<%-([\\s\\S]+?)%>/g\n};\n","import defaults from './defaults.js';\nimport _ from './underscore.js';\nimport './templateSettings.js';\n\n// When customizing `_.templateSettings`, if you don't want to define an\n// interpolation, evaluation or escaping regex, we need one that is\n// guaranteed not to match.\nvar noMatch = /(.)^/;\n\n// Certain characters need to be escaped so that they can be put into a\n// string literal.\nvar escapes = {\n \"'\": \"'\",\n '\\\\': '\\\\',\n '\\r': 'r',\n '\\n': 'n',\n '\\u2028': 'u2028',\n '\\u2029': 'u2029'\n};\n\nvar escapeRegExp = /\\\\|'|\\r|\\n|\\u2028|\\u2029/g;\n\nfunction escapeChar(match) {\n return '\\\\' + escapes[match];\n}\n\n// In order to prevent third-party code injection through\n// `_.templateSettings.variable`, we test it against the following regular\n// expression. It is intentionally a bit more liberal than just matching valid\n// identifiers, but still prevents possible loopholes through defaults or\n// destructuring assignment.\nvar bareIdentifier = /^\\s*(\\w|\\$)+\\s*$/;\n\n// JavaScript micro-templating, similar to John Resig's implementation.\n// Underscore templating handles arbitrary delimiters, preserves whitespace,\n// and correctly escapes quotes within interpolated code.\n// NB: `oldSettings` only exists for backwards compatibility.\nexport default function template(text, settings, oldSettings) {\n if (!settings && oldSettings) settings = oldSettings;\n settings = defaults({}, settings, _.templateSettings);\n\n // Combine delimiters into one regular expression via alternation.\n var matcher = RegExp([\n (settings.escape || noMatch).source,\n (settings.interpolate || noMatch).source,\n (settings.evaluate || noMatch).source\n ].join('|') + '|$', 'g');\n\n // Compile the template source, escaping string literals appropriately.\n var index = 0;\n var source = \"__p+='\";\n text.replace(matcher, function(match, escape, interpolate, evaluate, offset) {\n source += text.slice(index, offset).replace(escapeRegExp, escapeChar);\n index = offset + match.length;\n\n if (escape) {\n source += \"'+\\n((__t=(\" + escape + \"))==null?'':_.escape(__t))+\\n'\";\n } else if (interpolate) {\n source += \"'+\\n((__t=(\" + interpolate + \"))==null?'':__t)+\\n'\";\n } else if (evaluate) {\n source += \"';\\n\" + evaluate + \"\\n__p+='\";\n }\n\n // Adobe VMs need the match returned to produce the correct offset.\n return match;\n });\n source += \"';\\n\";\n\n var argument = settings.variable;\n if (argument) {\n // Insure against third-party code injection. (CVE-2021-23358)\n if (!bareIdentifier.test(argument)) throw new Error(\n 'variable is not a bare identifier: ' + argument\n );\n } else {\n // If a variable is not specified, place data values in local scope.\n source = 'with(obj||{}){\\n' + source + '}\\n';\n argument = 'obj';\n }\n\n source = \"var __t,__p='',__j=Array.prototype.join,\" +\n \"print=function(){__p+=__j.call(arguments,'');};\\n\" +\n source + 'return __p;\\n';\n\n var render;\n try {\n render = new Function(argument, '_', source);\n } catch (e) {\n e.source = source;\n throw e;\n }\n\n var template = function(data) {\n return render.call(this, data, _);\n };\n\n // Provide the compiled source as a convenience for precompilation.\n template.source = 'function(' + argument + '){\\n' + source + '}';\n\n return template;\n}\n","import isFunction from './isFunction.js';\nimport toPath from './_toPath.js';\n\n// Traverses the children of `obj` along `path`. If a child is a function, it\n// is invoked with its parent as context. Returns the value of the final\n// child, or `fallback` if any child is undefined.\nexport default function result(obj, path, fallback) {\n path = toPath(path);\n var length = path.length;\n if (!length) {\n return isFunction(fallback) ? fallback.call(obj) : fallback;\n }\n for (var i = 0; i < length; i++) {\n var prop = obj == null ? void 0 : obj[path[i]];\n if (prop === void 0) {\n prop = fallback;\n i = length; // Ensure we don't continue iterating.\n }\n obj = isFunction(prop) ? prop.call(obj) : prop;\n }\n return obj;\n}\n","// Generate a unique integer id (unique within the entire client session).\n// Useful for temporary DOM ids.\nvar idCounter = 0;\nexport default function uniqueId(prefix) {\n var id = ++idCounter + '';\n return prefix ? prefix + id : id;\n}\n","import _ from './underscore.js';\n\n// Start chaining a wrapped Underscore object.\nexport default function chain(obj) {\n var instance = _(obj);\n instance._chain = true;\n return instance;\n}\n","import baseCreate from './_baseCreate.js';\nimport isObject from './isObject.js';\n\n// Internal function to execute `sourceFunc` bound to `context` with optional\n// `args`. Determines whether to execute a function as a constructor or as a\n// normal function.\nexport default function executeBound(sourceFunc, boundFunc, context, callingContext, args) {\n if (!(callingContext instanceof boundFunc)) return sourceFunc.apply(context, args);\n var self = baseCreate(sourceFunc.prototype);\n var result = sourceFunc.apply(self, args);\n if (isObject(result)) return result;\n return self;\n}\n","import restArguments from './restArguments.js';\nimport executeBound from './_executeBound.js';\nimport _ from './underscore.js';\n\n// Partially apply a function by creating a version that has had some of its\n// arguments pre-filled, without changing its dynamic `this` context. `_` acts\n// as a placeholder by default, allowing any combination of arguments to be\n// pre-filled. Set `_.partial.placeholder` for a custom placeholder argument.\nvar partial = restArguments(function(func, boundArgs) {\n var placeholder = partial.placeholder;\n var bound = function() {\n var position = 0, length = boundArgs.length;\n var args = Array(length);\n for (var i = 0; i < length; i++) {\n args[i] = boundArgs[i] === placeholder ? arguments[position++] : boundArgs[i];\n }\n while (position < arguments.length) args.push(arguments[position++]);\n return executeBound(func, bound, this, this, args);\n };\n return bound;\n});\n\npartial.placeholder = _;\nexport default partial;\n","import restArguments from './restArguments.js';\nimport isFunction from './isFunction.js';\nimport executeBound from './_executeBound.js';\n\n// Create a function bound to a given object (assigning `this`, and arguments,\n// optionally).\nexport default restArguments(function(func, context, args) {\n if (!isFunction(func)) throw new TypeError('Bind must be called on a function');\n var bound = restArguments(function(callArgs) {\n return executeBound(func, bound, context, this, args.concat(callArgs));\n });\n return bound;\n});\n","import createSizePropertyCheck from './_createSizePropertyCheck.js';\nimport getLength from './_getLength.js';\n\n// Internal helper for collection methods to determine whether a collection\n// should be iterated as an array or as an object.\n// Related: https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength\n// Avoids a very nasty iOS 8 JIT bug on ARM-64. #2094\nexport default createSizePropertyCheck(getLength);\n","import getLength from './_getLength.js';\nimport isArrayLike from './_isArrayLike.js';\nimport isArray from './isArray.js';\nimport isArguments from './isArguments.js';\n\n// Internal implementation of a recursive `flatten` function.\nexport default function flatten(input, depth, strict, output) {\n output = output || [];\n if (!depth && depth !== 0) {\n depth = Infinity;\n } else if (depth <= 0) {\n return output.concat(input);\n }\n var idx = output.length;\n for (var i = 0, length = getLength(input); i < length; i++) {\n var value = input[i];\n if (isArrayLike(value) && (isArray(value) || isArguments(value))) {\n // Flatten current level of array or arguments object.\n if (depth > 1) {\n flatten(value, depth - 1, strict, output);\n idx = output.length;\n } else {\n var j = 0, len = value.length;\n while (j < len) output[idx++] = value[j++];\n }\n } else if (!strict) {\n output[idx++] = value;\n }\n }\n return output;\n}\n","import restArguments from './restArguments.js';\nimport flatten from './_flatten.js';\nimport bind from './bind.js';\n\n// Bind a number of an object's methods to that object. Remaining arguments\n// are the method names to be bound. Useful for ensuring that all callbacks\n// defined on an object belong to it.\nexport default restArguments(function(obj, keys) {\n keys = flatten(keys, false, false);\n var index = keys.length;\n if (index < 1) throw new Error('bindAll must be passed function names');\n while (index--) {\n var key = keys[index];\n obj[key] = bind(obj[key], obj);\n }\n return obj;\n});\n","import has from './_has.js';\n\n// Memoize an expensive function by storing its results.\nexport default function memoize(func, hasher) {\n var memoize = function(key) {\n var cache = memoize.cache;\n var address = '' + (hasher ? hasher.apply(this, arguments) : key);\n if (!has(cache, address)) cache[address] = func.apply(this, arguments);\n return cache[address];\n };\n memoize.cache = {};\n return memoize;\n}\n","import restArguments from './restArguments.js';\n\n// Delays a function for the given number of milliseconds, and then calls\n// it with the arguments supplied.\nexport default restArguments(function(func, wait, args) {\n return setTimeout(function() {\n return func.apply(null, args);\n }, wait);\n});\n","import partial from './partial.js';\nimport delay from './delay.js';\nimport _ from './underscore.js';\n\n// Defers a function, scheduling it to run after the current call stack has\n// cleared.\nexport default partial(delay, _, 1);\n","import now from './now.js';\n\n// Returns a function, that, when invoked, will only be triggered at most once\n// during a given window of time. Normally, the throttled function will run\n// as much as it can, without ever going more than once per `wait` duration;\n// but if you'd like to disable the execution on the leading edge, pass\n// `{leading: false}`. To disable execution on the trailing edge, ditto.\nexport default function throttle(func, wait, options) {\n var timeout, context, args, result;\n var previous = 0;\n if (!options) options = {};\n\n var later = function() {\n previous = options.leading === false ? 0 : now();\n timeout = null;\n result = func.apply(context, args);\n if (!timeout) context = args = null;\n };\n\n var throttled = function() {\n var _now = now();\n if (!previous && options.leading === false) previous = _now;\n var remaining = wait - (_now - previous);\n context = this;\n args = arguments;\n if (remaining <= 0 || remaining > wait) {\n if (timeout) {\n clearTimeout(timeout);\n timeout = null;\n }\n previous = _now;\n result = func.apply(context, args);\n if (!timeout) context = args = null;\n } else if (!timeout && options.trailing !== false) {\n timeout = setTimeout(later, remaining);\n }\n return result;\n };\n\n throttled.cancel = function() {\n clearTimeout(timeout);\n previous = 0;\n timeout = context = args = null;\n };\n\n return throttled;\n}\n","import restArguments from './restArguments.js';\nimport now from './now.js';\n\n// When a sequence of calls of the returned function ends, the argument\n// function is triggered. The end of a sequence is defined by the `wait`\n// parameter. If `immediate` is passed, the argument function will be\n// triggered at the beginning of the sequence instead of at the end.\nexport default function debounce(func, wait, immediate) {\n var timeout, previous, args, result, context;\n\n var later = function() {\n var passed = now() - previous;\n if (wait > passed) {\n timeout = setTimeout(later, wait - passed);\n } else {\n timeout = null;\n if (!immediate) result = func.apply(context, args);\n // This check is needed because `func` can recursively invoke `debounced`.\n if (!timeout) args = context = null;\n }\n };\n\n var debounced = restArguments(function(_args) {\n context = this;\n args = _args;\n previous = now();\n if (!timeout) {\n timeout = setTimeout(later, wait);\n if (immediate) result = func.apply(context, args);\n }\n return result;\n });\n\n debounced.cancel = function() {\n clearTimeout(timeout);\n timeout = args = context = null;\n };\n\n return debounced;\n}\n","import partial from './partial.js';\n\n// Returns the first function passed as an argument to the second,\n// allowing you to adjust arguments, run code before and after, and\n// conditionally execute the original function.\nexport default function wrap(func, wrapper) {\n return partial(wrapper, func);\n}\n","// Returns a negated version of the passed-in predicate.\nexport default function negate(predicate) {\n return function() {\n return !predicate.apply(this, arguments);\n };\n}\n","// Returns a function that is the composition of a list of functions, each\n// consuming the return value of the function that follows.\nexport default function compose() {\n var args = arguments;\n var start = args.length - 1;\n return function() {\n var i = start;\n var result = args[start].apply(this, arguments);\n while (i--) result = args[i].call(this, result);\n return result;\n };\n}\n","// Returns a function that will only be executed on and after the Nth call.\nexport default function after(times, func) {\n return function() {\n if (--times < 1) {\n return func.apply(this, arguments);\n }\n };\n}\n","// Returns a function that will only be executed up to (but not including) the\n// Nth call.\nexport default function before(times, func) {\n var memo;\n return function() {\n if (--times > 0) {\n memo = func.apply(this, arguments);\n }\n if (times <= 1) func = null;\n return memo;\n };\n}\n","import partial from './partial.js';\nimport before from './before.js';\n\n// Returns a function that will be executed at most one time, no matter how\n// often you call it. Useful for lazy initialization.\nexport default partial(before, 2);\n","import cb from './_cb.js';\nimport keys from './keys.js';\n\n// Returns the first key on an object that passes a truth test.\nexport default function findKey(obj, predicate, context) {\n predicate = cb(predicate, context);\n var _keys = keys(obj), key;\n for (var i = 0, length = _keys.length; i < length; i++) {\n key = _keys[i];\n if (predicate(obj[key], key, obj)) return key;\n }\n}\n","import cb from './_cb.js';\nimport getLength from './_getLength.js';\n\n// Internal function to generate `_.findIndex` and `_.findLastIndex`.\nexport default function createPredicateIndexFinder(dir) {\n return function(array, predicate, context) {\n predicate = cb(predicate, context);\n var length = getLength(array);\n var index = dir > 0 ? 0 : length - 1;\n for (; index >= 0 && index < length; index += dir) {\n if (predicate(array[index], index, array)) return index;\n }\n return -1;\n };\n}\n","import createPredicateIndexFinder from './_createPredicateIndexFinder.js';\n\n// Returns the first index on an array-like that passes a truth test.\nexport default createPredicateIndexFinder(1);\n","import createPredicateIndexFinder from './_createPredicateIndexFinder.js';\n\n// Returns the last index on an array-like that passes a truth test.\nexport default createPredicateIndexFinder(-1);\n","import cb from './_cb.js';\nimport getLength from './_getLength.js';\n\n// Use a comparator function to figure out the smallest index at which\n// an object should be inserted so as to maintain order. Uses binary search.\nexport default function sortedIndex(array, obj, iteratee, context) {\n iteratee = cb(iteratee, context, 1);\n var value = iteratee(obj);\n var low = 0, high = getLength(array);\n while (low < high) {\n var mid = Math.floor((low + high) / 2);\n if (iteratee(array[mid]) < value) low = mid + 1; else high = mid;\n }\n return low;\n}\n","import getLength from './_getLength.js';\nimport { slice } from './_setup.js';\nimport isNaN from './isNaN.js';\n\n// Internal function to generate the `_.indexOf` and `_.lastIndexOf` functions.\nexport default function createIndexFinder(dir, predicateFind, sortedIndex) {\n return function(array, item, idx) {\n var i = 0, length = getLength(array);\n if (typeof idx == 'number') {\n if (dir > 0) {\n i = idx >= 0 ? idx : Math.max(idx + length, i);\n } else {\n length = idx >= 0 ? Math.min(idx + 1, length) : idx + length + 1;\n }\n } else if (sortedIndex && idx && length) {\n idx = sortedIndex(array, item);\n return array[idx] === item ? idx : -1;\n }\n if (item !== item) {\n idx = predicateFind(slice.call(array, i, length), isNaN);\n return idx >= 0 ? idx + i : -1;\n }\n for (idx = dir > 0 ? i : length - 1; idx >= 0 && idx < length; idx += dir) {\n if (array[idx] === item) return idx;\n }\n return -1;\n };\n}\n","import sortedIndex from './sortedIndex.js';\nimport findIndex from './findIndex.js';\nimport createIndexFinder from './_createIndexFinder.js';\n\n// Return the position of the first occurrence of an item in an array,\n// or -1 if the item is not included in the array.\n// If the array is large and already in sort order, pass `true`\n// for **isSorted** to use binary search.\nexport default createIndexFinder(1, findIndex, sortedIndex);\n","import findLastIndex from './findLastIndex.js';\nimport createIndexFinder from './_createIndexFinder.js';\n\n// Return the position of the last occurrence of an item in an array,\n// or -1 if the item is not included in the array.\nexport default createIndexFinder(-1, findLastIndex);\n","import isArrayLike from './_isArrayLike.js';\nimport findIndex from './findIndex.js';\nimport findKey from './findKey.js';\n\n// Return the first value which passes a truth test.\nexport default function find(obj, predicate, context) {\n var keyFinder = isArrayLike(obj) ? findIndex : findKey;\n var key = keyFinder(obj, predicate, context);\n if (key !== void 0 && key !== -1) return obj[key];\n}\n","import find from './find.js';\nimport matcher from './matcher.js';\n\n// Convenience version of a common use case of `_.find`: getting the first\n// object containing specific `key:value` pairs.\nexport default function findWhere(obj, attrs) {\n return find(obj, matcher(attrs));\n}\n","import optimizeCb from './_optimizeCb.js';\nimport isArrayLike from './_isArrayLike.js';\nimport keys from './keys.js';\n\n// The cornerstone for collection functions, an `each`\n// implementation, aka `forEach`.\n// Handles raw objects in addition to array-likes. Treats all\n// sparse array-likes as if they were dense.\nexport default function each(obj, iteratee, context) {\n iteratee = optimizeCb(iteratee, context);\n var i, length;\n if (isArrayLike(obj)) {\n for (i = 0, length = obj.length; i < length; i++) {\n iteratee(obj[i], i, obj);\n }\n } else {\n var _keys = keys(obj);\n for (i = 0, length = _keys.length; i < length; i++) {\n iteratee(obj[_keys[i]], _keys[i], obj);\n }\n }\n return obj;\n}\n","import cb from './_cb.js';\nimport isArrayLike from './_isArrayLike.js';\nimport keys from './keys.js';\n\n// Return the results of applying the iteratee to each element.\nexport default function map(obj, iteratee, context) {\n iteratee = cb(iteratee, context);\n var _keys = !isArrayLike(obj) && keys(obj),\n length = (_keys || obj).length,\n results = Array(length);\n for (var index = 0; index < length; index++) {\n var currentKey = _keys ? _keys[index] : index;\n results[index] = iteratee(obj[currentKey], currentKey, obj);\n }\n return results;\n}\n","import isArrayLike from './_isArrayLike.js';\nimport keys from './keys.js';\nimport optimizeCb from './_optimizeCb.js';\n\n// Internal helper to create a reducing function, iterating left or right.\nexport default function createReduce(dir) {\n // Wrap code that reassigns argument variables in a separate function than\n // the one that accesses `arguments.length` to avoid a perf hit. (#1991)\n var reducer = function(obj, iteratee, memo, initial) {\n var _keys = !isArrayLike(obj) && keys(obj),\n length = (_keys || obj).length,\n index = dir > 0 ? 0 : length - 1;\n if (!initial) {\n memo = obj[_keys ? _keys[index] : index];\n index += dir;\n }\n for (; index >= 0 && index < length; index += dir) {\n var currentKey = _keys ? _keys[index] : index;\n memo = iteratee(memo, obj[currentKey], currentKey, obj);\n }\n return memo;\n };\n\n return function(obj, iteratee, memo, context) {\n var initial = arguments.length >= 3;\n return reducer(obj, optimizeCb(iteratee, context, 4), memo, initial);\n };\n}\n","import createReduce from './_createReduce.js';\n\n// **Reduce** builds up a single result from a list of values, aka `inject`,\n// or `foldl`.\nexport default createReduce(1);\n","import createReduce from './_createReduce.js';\n\n// The right-associative version of reduce, also known as `foldr`.\nexport default createReduce(-1);\n","import cb from './_cb.js';\nimport each from './each.js';\n\n// Return all the elements that pass a truth test.\nexport default function filter(obj, predicate, context) {\n var results = [];\n predicate = cb(predicate, context);\n each(obj, function(value, index, list) {\n if (predicate(value, index, list)) results.push(value);\n });\n return results;\n}\n","import filter from './filter.js';\nimport negate from './negate.js';\nimport cb from './_cb.js';\n\n// Return all the elements for which a truth test fails.\nexport default function reject(obj, predicate, context) {\n return filter(obj, negate(cb(predicate)), context);\n}\n","import cb from './_cb.js';\nimport isArrayLike from './_isArrayLike.js';\nimport keys from './keys.js';\n\n// Determine whether all of the elements pass a truth test.\nexport default function every(obj, predicate, context) {\n predicate = cb(predicate, context);\n var _keys = !isArrayLike(obj) && keys(obj),\n length = (_keys || obj).length;\n for (var index = 0; index < length; index++) {\n var currentKey = _keys ? _keys[index] : index;\n if (!predicate(obj[currentKey], currentKey, obj)) return false;\n }\n return true;\n}\n","import cb from './_cb.js';\nimport isArrayLike from './_isArrayLike.js';\nimport keys from './keys.js';\n\n// Determine if at least one element in the object passes a truth test.\nexport default function some(obj, predicate, context) {\n predicate = cb(predicate, context);\n var _keys = !isArrayLike(obj) && keys(obj),\n length = (_keys || obj).length;\n for (var index = 0; index < length; index++) {\n var currentKey = _keys ? _keys[index] : index;\n if (predicate(obj[currentKey], currentKey, obj)) return true;\n }\n return false;\n}\n","import isArrayLike from './_isArrayLike.js';\nimport values from './values.js';\nimport indexOf from './indexOf.js';\n\n// Determine if the array or object contains a given item (using `===`).\nexport default function contains(obj, item, fromIndex, guard) {\n if (!isArrayLike(obj)) obj = values(obj);\n if (typeof fromIndex != 'number' || guard) fromIndex = 0;\n return indexOf(obj, item, fromIndex) >= 0;\n}\n","import restArguments from './restArguments.js';\nimport isFunction from './isFunction.js';\nimport map from './map.js';\nimport deepGet from './_deepGet.js';\nimport toPath from './_toPath.js';\n\n// Invoke a method (with arguments) on every item in a collection.\nexport default restArguments(function(obj, path, args) {\n var contextPath, func;\n if (isFunction(path)) {\n func = path;\n } else {\n path = toPath(path);\n contextPath = path.slice(0, -1);\n path = path[path.length - 1];\n }\n return map(obj, function(context) {\n var method = func;\n if (!method) {\n if (contextPath && contextPath.length) {\n context = deepGet(context, contextPath);\n }\n if (context == null) return void 0;\n method = context[path];\n }\n return method == null ? method : method.apply(context, args);\n });\n});\n","import map from './map.js';\nimport property from './property.js';\n\n// Convenience version of a common use case of `_.map`: fetching a property.\nexport default function pluck(obj, key) {\n return map(obj, property(key));\n}\n","import filter from './filter.js';\nimport matcher from './matcher.js';\n\n// Convenience version of a common use case of `_.filter`: selecting only\n// objects containing specific `key:value` pairs.\nexport default function where(obj, attrs) {\n return filter(obj, matcher(attrs));\n}\n","import isArrayLike from './_isArrayLike.js';\nimport values from './values.js';\nimport cb from './_cb.js';\nimport each from './each.js';\n\n// Return the maximum element (or element-based computation).\nexport default function max(obj, iteratee, context) {\n var result = -Infinity, lastComputed = -Infinity,\n value, computed;\n if (iteratee == null || (typeof iteratee == 'number' && typeof obj[0] != 'object' && obj != null)) {\n obj = isArrayLike(obj) ? obj : values(obj);\n for (var i = 0, length = obj.length; i < length; i++) {\n value = obj[i];\n if (value != null && value > result) {\n result = value;\n }\n }\n } else {\n iteratee = cb(iteratee, context);\n each(obj, function(v, index, list) {\n computed = iteratee(v, index, list);\n if (computed > lastComputed || (computed === -Infinity && result === -Infinity)) {\n result = v;\n lastComputed = computed;\n }\n });\n }\n return result;\n}\n","import isArrayLike from './_isArrayLike.js';\nimport values from './values.js';\nimport cb from './_cb.js';\nimport each from './each.js';\n\n// Return the minimum element (or element-based computation).\nexport default function min(obj, iteratee, context) {\n var result = Infinity, lastComputed = Infinity,\n value, computed;\n if (iteratee == null || (typeof iteratee == 'number' && typeof obj[0] != 'object' && obj != null)) {\n obj = isArrayLike(obj) ? obj : values(obj);\n for (var i = 0, length = obj.length; i < length; i++) {\n value = obj[i];\n if (value != null && value < result) {\n result = value;\n }\n }\n } else {\n iteratee = cb(iteratee, context);\n each(obj, function(v, index, list) {\n computed = iteratee(v, index, list);\n if (computed < lastComputed || (computed === Infinity && result === Infinity)) {\n result = v;\n lastComputed = computed;\n }\n });\n }\n return result;\n}\n","import isArray from './isArray.js';\nimport { slice } from './_setup.js';\nimport isString from './isString.js';\nimport isArrayLike from './_isArrayLike.js';\nimport map from './map.js';\nimport identity from './identity.js';\nimport values from './values.js';\n\n// Safely create a real, live array from anything iterable.\nvar reStrSymbol = /[^\\ud800-\\udfff]|[\\ud800-\\udbff][\\udc00-\\udfff]|[\\ud800-\\udfff]/g;\nexport default function toArray(obj) {\n if (!obj) return [];\n if (isArray(obj)) return slice.call(obj);\n if (isString(obj)) {\n // Keep surrogate pair characters together.\n return obj.match(reStrSymbol);\n }\n if (isArrayLike(obj)) return map(obj, identity);\n return values(obj);\n}\n","import isArrayLike from './_isArrayLike.js';\nimport values from './values.js';\nimport getLength from './_getLength.js';\nimport random from './random.js';\nimport toArray from './toArray.js';\n\n// Sample **n** random values from a collection using the modern version of the\n// [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher–Yates_shuffle).\n// If **n** is not specified, returns a single random element.\n// The internal `guard` argument allows it to work with `_.map`.\nexport default function sample(obj, n, guard) {\n if (n == null || guard) {\n if (!isArrayLike(obj)) obj = values(obj);\n return obj[random(obj.length - 1)];\n }\n var sample = toArray(obj);\n var length = getLength(sample);\n n = Math.max(Math.min(n, length), 0);\n var last = length - 1;\n for (var index = 0; index < n; index++) {\n var rand = random(index, last);\n var temp = sample[index];\n sample[index] = sample[rand];\n sample[rand] = temp;\n }\n return sample.slice(0, n);\n}\n","import sample from './sample.js';\n\n// Shuffle a collection.\nexport default function shuffle(obj) {\n return sample(obj, Infinity);\n}\n","import cb from './_cb.js';\nimport pluck from './pluck.js';\nimport map from './map.js';\n\n// Sort the object's values by a criterion produced by an iteratee.\nexport default function sortBy(obj, iteratee, context) {\n var index = 0;\n iteratee = cb(iteratee, context);\n return pluck(map(obj, function(value, key, list) {\n return {\n value: value,\n index: index++,\n criteria: iteratee(value, key, list)\n };\n }).sort(function(left, right) {\n var a = left.criteria;\n var b = right.criteria;\n if (a !== b) {\n if (a > b || a === void 0) return 1;\n if (a < b || b === void 0) return -1;\n }\n return left.index - right.index;\n }), 'value');\n}\n","import cb from './_cb.js';\nimport each from './each.js';\n\n// An internal function used for aggregate \"group by\" operations.\nexport default function group(behavior, partition) {\n return function(obj, iteratee, context) {\n var result = partition ? [[], []] : {};\n iteratee = cb(iteratee, context);\n each(obj, function(value, index) {\n var key = iteratee(value, index, obj);\n behavior(result, value, key);\n });\n return result;\n };\n}\n","import group from './_group.js';\nimport has from './_has.js';\n\n// Groups the object's values by a criterion. Pass either a string attribute\n// to group by, or a function that returns the criterion.\nexport default group(function(result, value, key) {\n if (has(result, key)) result[key].push(value); else result[key] = [value];\n});\n","import group from './_group.js';\n\n// Indexes the object's values by a criterion, similar to `_.groupBy`, but for\n// when you know that your index values will be unique.\nexport default group(function(result, value, key) {\n result[key] = value;\n});\n","import group from './_group.js';\nimport has from './_has.js';\n\n// Counts instances of an object that group by a certain criterion. Pass\n// either a string attribute to count by, or a function that returns the\n// criterion.\nexport default group(function(result, value, key) {\n if (has(result, key)) result[key]++; else result[key] = 1;\n});\n","import group from './_group.js';\n\n// Split a collection into two arrays: one whose elements all pass the given\n// truth test, and one whose elements all do not pass the truth test.\nexport default group(function(result, value, pass) {\n result[pass ? 0 : 1].push(value);\n}, true);\n","import isArrayLike from './_isArrayLike.js';\nimport keys from './keys.js';\n\n// Return the number of elements in a collection.\nexport default function size(obj) {\n if (obj == null) return 0;\n return isArrayLike(obj) ? obj.length : keys(obj).length;\n}\n","// Internal `_.pick` helper function to determine whether `key` is an enumerable\n// property name of `obj`.\nexport default function keyInObj(value, key, obj) {\n return key in obj;\n}\n","import restArguments from './restArguments.js';\nimport isFunction from './isFunction.js';\nimport optimizeCb from './_optimizeCb.js';\nimport allKeys from './allKeys.js';\nimport keyInObj from './_keyInObj.js';\nimport flatten from './_flatten.js';\n\n// Return a copy of the object only containing the allowed properties.\nexport default restArguments(function(obj, keys) {\n var result = {}, iteratee = keys[0];\n if (obj == null) return result;\n if (isFunction(iteratee)) {\n if (keys.length > 1) iteratee = optimizeCb(iteratee, keys[1]);\n keys = allKeys(obj);\n } else {\n iteratee = keyInObj;\n keys = flatten(keys, false, false);\n obj = Object(obj);\n }\n for (var i = 0, length = keys.length; i < length; i++) {\n var key = keys[i];\n var value = obj[key];\n if (iteratee(value, key, obj)) result[key] = value;\n }\n return result;\n});\n","import restArguments from './restArguments.js';\nimport isFunction from './isFunction.js';\nimport negate from './negate.js';\nimport map from './map.js';\nimport flatten from './_flatten.js';\nimport contains from './contains.js';\nimport pick from './pick.js';\n\n// Return a copy of the object without the disallowed properties.\nexport default restArguments(function(obj, keys) {\n var iteratee = keys[0], context;\n if (isFunction(iteratee)) {\n iteratee = negate(iteratee);\n if (keys.length > 1) context = keys[1];\n } else {\n keys = map(flatten(keys, false, false), String);\n iteratee = function(value, key) {\n return !contains(keys, key);\n };\n }\n return pick(obj, iteratee, context);\n});\n","import { slice } from './_setup.js';\n\n// Returns everything but the last entry of the array. Especially useful on\n// the arguments object. Passing **n** will return all the values in\n// the array, excluding the last N.\nexport default function initial(array, n, guard) {\n return slice.call(array, 0, Math.max(0, array.length - (n == null || guard ? 1 : n)));\n}\n","import initial from './initial.js';\n\n// Get the first element of an array. Passing **n** will return the first N\n// values in the array. The **guard** check allows it to work with `_.map`.\nexport default function first(array, n, guard) {\n if (array == null || array.length < 1) return n == null || guard ? void 0 : [];\n if (n == null || guard) return array[0];\n return initial(array, array.length - n);\n}\n","import { slice } from './_setup.js';\n\n// Returns everything but the first entry of the `array`. Especially useful on\n// the `arguments` object. Passing an **n** will return the rest N values in the\n// `array`.\nexport default function rest(array, n, guard) {\n return slice.call(array, n == null || guard ? 1 : n);\n}\n","import rest from './rest.js';\n\n// Get the last element of an array. Passing **n** will return the last N\n// values in the array.\nexport default function last(array, n, guard) {\n if (array == null || array.length < 1) return n == null || guard ? void 0 : [];\n if (n == null || guard) return array[array.length - 1];\n return rest(array, Math.max(0, array.length - n));\n}\n","import filter from './filter.js';\n\n// Trim out all falsy values from an array.\nexport default function compact(array) {\n return filter(array, Boolean);\n}\n","import _flatten from './_flatten.js';\n\n// Flatten out an array, either recursively (by default), or up to `depth`.\n// Passing `true` or `false` as `depth` means `1` or `Infinity`, respectively.\nexport default function flatten(array, depth) {\n return _flatten(array, depth, false);\n}\n","import restArguments from './restArguments.js';\nimport flatten from './_flatten.js';\nimport filter from './filter.js';\nimport contains from './contains.js';\n\n// Take the difference between one array and a number of other arrays.\n// Only the elements present in just the first array will remain.\nexport default restArguments(function(array, rest) {\n rest = flatten(rest, true, true);\n return filter(array, function(value){\n return !contains(rest, value);\n });\n});\n","import restArguments from './restArguments.js';\nimport difference from './difference.js';\n\n// Return a version of the array that does not contain the specified value(s).\nexport default restArguments(function(array, otherArrays) {\n return difference(array, otherArrays);\n});\n","import isBoolean from './isBoolean.js';\nimport cb from './_cb.js';\nimport getLength from './_getLength.js';\nimport contains from './contains.js';\n\n// Produce a duplicate-free version of the array. If the array has already\n// been sorted, you have the option of using a faster algorithm.\n// The faster algorithm will not work with an iteratee if the iteratee\n// is not a one-to-one function, so providing an iteratee will disable\n// the faster algorithm.\nexport default function uniq(array, isSorted, iteratee, context) {\n if (!isBoolean(isSorted)) {\n context = iteratee;\n iteratee = isSorted;\n isSorted = false;\n }\n if (iteratee != null) iteratee = cb(iteratee, context);\n var result = [];\n var seen = [];\n for (var i = 0, length = getLength(array); i < length; i++) {\n var value = array[i],\n computed = iteratee ? iteratee(value, i, array) : value;\n if (isSorted && !iteratee) {\n if (!i || seen !== computed) result.push(value);\n seen = computed;\n } else if (iteratee) {\n if (!contains(seen, computed)) {\n seen.push(computed);\n result.push(value);\n }\n } else if (!contains(result, value)) {\n result.push(value);\n }\n }\n return result;\n}\n","import restArguments from './restArguments.js';\nimport uniq from './uniq.js';\nimport flatten from './_flatten.js';\n\n// Produce an array that contains the union: each distinct element from all of\n// the passed-in arrays.\nexport default restArguments(function(arrays) {\n return uniq(flatten(arrays, true, true));\n});\n","import getLength from './_getLength.js';\nimport contains from './contains.js';\n\n// Produce an array that contains every item shared between all the\n// passed-in arrays.\nexport default function intersection(array) {\n var result = [];\n var argsLength = arguments.length;\n for (var i = 0, length = getLength(array); i < length; i++) {\n var item = array[i];\n if (contains(result, item)) continue;\n var j;\n for (j = 1; j < argsLength; j++) {\n if (!contains(arguments[j], item)) break;\n }\n if (j === argsLength) result.push(item);\n }\n return result;\n}\n","import max from './max.js';\nimport getLength from './_getLength.js';\nimport pluck from './pluck.js';\n\n// Complement of zip. Unzip accepts an array of arrays and groups\n// each array's elements on shared indices.\nexport default function unzip(array) {\n var length = (array && max(array, getLength).length) || 0;\n var result = Array(length);\n\n for (var index = 0; index < length; index++) {\n result[index] = pluck(array, index);\n }\n return result;\n}\n","import restArguments from './restArguments.js';\nimport unzip from './unzip.js';\n\n// Zip together multiple lists into a single array -- elements that share\n// an index go together.\nexport default restArguments(unzip);\n","import getLength from './_getLength.js';\n\n// Converts lists into objects. Pass either a single array of `[key, value]`\n// pairs, or two parallel arrays of the same length -- one of keys, and one of\n// the corresponding values. Passing by pairs is the reverse of `_.pairs`.\nexport default function object(list, values) {\n var result = {};\n for (var i = 0, length = getLength(list); i < length; i++) {\n if (values) {\n result[list[i]] = values[i];\n } else {\n result[list[i][0]] = list[i][1];\n }\n }\n return result;\n}\n","// Generate an integer Array containing an arithmetic progression. A port of\n// the native Python `range()` function. See\n// [the Python documentation](https://docs.python.org/library/functions.html#range).\nexport default function range(start, stop, step) {\n if (stop == null) {\n stop = start || 0;\n start = 0;\n }\n if (!step) {\n step = stop < start ? -1 : 1;\n }\n\n var length = Math.max(Math.ceil((stop - start) / step), 0);\n var range = Array(length);\n\n for (var idx = 0; idx < length; idx++, start += step) {\n range[idx] = start;\n }\n\n return range;\n}\n","import { slice } from './_setup.js';\n\n// Chunk a single array into multiple arrays, each containing `count` or fewer\n// items.\nexport default function chunk(array, count) {\n if (count == null || count < 1) return [];\n var result = [];\n var i = 0, length = array.length;\n while (i < length) {\n result.push(slice.call(array, i, i += count));\n }\n return result;\n}\n","import _ from './underscore.js';\n\n// Helper function to continue chaining intermediate results.\nexport default function chainResult(instance, obj) {\n return instance._chain ? _(obj).chain() : obj;\n}\n","import _ from './underscore.js';\nimport each from './each.js';\nimport functions from './functions.js';\nimport { push } from './_setup.js';\nimport chainResult from './_chainResult.js';\n\n// Add your own custom functions to the Underscore object.\nexport default function mixin(obj) {\n each(functions(obj), function(name) {\n var func = _[name] = obj[name];\n _.prototype[name] = function() {\n var args = [this._wrapped];\n push.apply(args, arguments);\n return chainResult(this, func.apply(_, args));\n };\n });\n return _;\n}\n","import _ from './underscore.js';\nimport each from './each.js';\nimport { ArrayProto } from './_setup.js';\nimport chainResult from './_chainResult.js';\n\n// Add all mutator `Array` functions to the wrapper.\neach(['pop', 'push', 'reverse', 'shift', 'sort', 'splice', 'unshift'], function(name) {\n var method = ArrayProto[name];\n _.prototype[name] = function() {\n var obj = this._wrapped;\n if (obj != null) {\n method.apply(obj, arguments);\n if ((name === 'shift' || name === 'splice') && obj.length === 0) {\n delete obj[0];\n }\n }\n return chainResult(this, obj);\n };\n});\n\n// Add all accessor `Array` functions to the wrapper.\neach(['concat', 'join', 'slice'], function(name) {\n var method = ArrayProto[name];\n _.prototype[name] = function() {\n var obj = this._wrapped;\n if (obj != null) obj = method.apply(obj, arguments);\n return chainResult(this, obj);\n };\n});\n\nexport default _;\n","// Default Export\n// ==============\n// In this module, we mix our bundled exports into the `_` object and export\n// the result. This is analogous to setting `module.exports = _` in CommonJS.\n// Hence, this module is also the entry point of our UMD bundle and the package\n// entry point for CommonJS and AMD users. In other words, this is (the source\n// of) the module you are interfacing with when you do any of the following:\n//\n// ```js\n// // CommonJS\n// var _ = require('underscore');\n//\n// // AMD\n// define(['underscore'], function(_) {...});\n//\n// // UMD in the browser\n// // _ is available as a global variable\n// ```\nimport * as allExports from './index.js';\nimport { mixin } from './index.js';\n\n// Add all of the Underscore functions to the wrapper object.\nvar _ = mixin(allExports);\n// Legacy Node.js API.\n_._ = _;\n// Export the Underscore API.\nexport default _;\n","import {Component} from 'react';\n\nclass SearchItem extends Component{\n\tconstructor(props){\n\t\tsuper();\n\t\tthis.state = {\n\t\t\tover: props.isOver,\n\t\t};\n\t}\n\tcomponentWillReceiveProps(nextProps){\n\t\tthis.state.over = nextProps.isOver;\n\t}\n\trender(){\n\t\tconst {display_name} = this.props.author;\n\t\treturn(\n\t\t\t<div\n\t\t\t\tonMouseOver={this.onMouseOver.bind(this, true)}\n\t\t\t\tonMouseOut={this.onMouseOver.bind(this, false)}\n\t\t\t\tonClick={this.onClick.bind(this)}\n\t\t\t\tclassName={`additional-authors-search-item ${(this.state.over)? 'is-over': ''}`}\n\t\t\t>\n\t\t\t\t{display_name}\n\t\t\t</div>\n\t\t)\n\t}\n\tonMouseOver(is_over){\n\t\tthis.setState({over: is_over});\n\t}\n\tonClick(){\n\t\tthis.props.onSelect(this.props.author);\n\t}\n}\n\n/**\n * export component to public\n */\nexport default SearchItem;","import {Component} from 'react';\n\nclass NewItem extends Component{\n\tconstructor(props){\n\t\tsuper();\n\t\tthis.state = {\n\t\t\tover: props.isOver,\n\t\t};\n\t}\n\tcomponentWillReceiveProps(nextProps){\n\t\tthis.state.over = nextProps.isOver;\n\t}\n\trender(){\n\t\treturn(\n\t\t\t<div\n\t\t\t\tonMouseOver={this.onMouseOver.bind(this, true)}\n\t\t\t\tonMouseOut={this.onMouseOver.bind(this, false)}\n\t\t\t\tonClick={this.onClick.bind(this)}\n\t\t\t\tclassName={`additional-authors-new-item ${(this.state.over)? 'is-over': ''}`}\n\t\t\t>\n\t\t\t\tNew user \"{this.props.name}\"\n\t\t\t</div>\n\t\t)\n\t}\n\tonMouseOver(is_over){\n\t\tthis.setState({over: is_over});\n\t}\n\tonClick(){\n\t\tthis.props.onSelect(this.props.name);\n\t}\n}\n\n/**\n * export component to public\n */\nexport default NewItem;","import {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport SearchItem from './search-item.jsx';\nimport NewItem from './new-item.jsx';\n\nclass Search extends Component {\n\n\t/**\n\t * ------------------------------------------------\n\t * lifecycle\n\t * ------------------------------------------------\n\t */\n\tconstructor(props) {\n\t\tsuper(props);\n\t\tthis.state = {\n\t\t\tquery: \"\",\n\t\t\tover_index: 0,\n\t\t\tsearch_result: [],\n\t\t\tfocus: false,\n\t\t}\n\t}\n\n\t/**\n\t * ------------------------------------------------\n\t * rendering\n\t * ------------------------------------------------\n\t */\n\trender() {\n\t\tconst {query} = this.state;\n\t\treturn (\n\t\t\t<div\n\t\t\t\tclassName=\"additional-authors-search\"\n\t\t\t onKeyUp={this.onKeyUp.bind(this)}\n\t\t\t>\n\t\t\t\t<label>\n\t\t\t\t\t{this.props.languages.label}\n\t\t\t\t\t<br />\n\t\t\t\t\t<input\n\t\t\t\t\t\tclassName=\"additional-authors-search__input\"\n\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\tvalue={query}\n\t\t\t\t\t\tonKeyDown={this.onKeyDown.bind(this)}\n\t\t\t\t\t onChange={this.onChange.bind(this)}\n\t\t\t\t\t onFocus={this.onFocusSearch.bind(this, true)}\n\t\t\t\t\t onBlur={this.onFocusSearch.bind(this, false)}\n\t\t\t\t\t/>\n\t\t\t\t</label>\n\t\t\t\t{this.renderList()}\n\t\t\t</div>\n\t\t)\n\t}\n\trenderList(){\n\t\tconst {selected} = this.props;\n\t\tconst {over_index, search_result, focus, query} = this.state;\n\t\tif(focus){\n\t\t\tconst newItem = (query !== \"\") ? (<NewItem\n\t\t\tname={query}\n\t\t\tisOver={(over_index === search_result.length)}\n\t\t\tonSelect={this.onNewItem.bind(this)}\n\t\t\t/>): null;\n\t\t\treturn (\n\t\t\t\t<div\n\t\t\t\t\tclassName=\"additional-authors-search-list\"\n\t\t\t\t>\n\t\t\t\t\t{search_result.map((item, index)=>{\n\t\t\t\t\t\treturn <SearchItem\n\t\t\t\t\t\t\tkey={item.ID}\n\t\t\t\t\t\t\tauthor={item}\n\t\t\t\t\t\t\tonSelect={this.onSelect.bind(this, item)}\n\t\t\t\t\t\t\tisOver={(over_index === index)}\n\t\t\t\t\t\t/>\n\t\t\t\t\t})}\n\t\t\t\t\t{newItem}\n\t\t\t\t</div>\n\t\t\t)\n\t\t}\n\t\treturn null;\n\t}\n\n\t/**\n\t * ------------------------------------------------\n\t * events\n\t * ------------------------------------------------\n\t */\n\tonChange(e){\n\n\t\tif(e) this.state.query = e.target.value;\n\n\t\tconst {users, selected} = this.props;\n\t\tconst {query} = this.state;\n\n\t\tlet search_result = [];\n\n\t\tif(query !== ''){\n\t\t\tfor(let user of users){\n\t\t\t\tif(user.display_name.toLowerCase().indexOf(query.toLowerCase()) > -1){\n\t\t\t\t\tif(selected.indexOf(user.ID+\"\") >= 0 || selected.indexOf(parseInt(user.ID)) >= 0) continue;\n\t\t\t\t\tsearch_result.unshift(user);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tsearch_result = [];\n\t\t}\n\n\t\tthis.setState({over_index: 0, search_result: search_result});\n\t}\n\n\tonFocusSearch(focus){\n\t\tclearTimeout(this.closeTimeout);\n\t\tif(!focus){\n\t\t\t// just enough time to check if list item was clicked\n\t\t\tthis.closeTimeout = setTimeout(()=>{\n\t\t\t\tthis.setState({focus: focus});\n\t\t\t},600);\n\t\t\treturn;\n\t\t}\n\t\tthis.setState({focus: focus});\n\t}\n\tonSelect(user){\n\t\tthis.props.onSelect(user);\n\t\tthis.setState({focus: false});\n\t\tthis.onChange();\n\t}\n\tonNewItem(name){\n\t\tif(name === \"\") return;\n\t\tthis.props.onSelect({\n\t\t\tID: 0,\n\t\t\tdisplay_name: name,\n\t\t\tuser_nicename: \"-\",\n\t\t});\n\t\tthis.setState({query:\"\", search_result:[] });\n\t}\n\tonKeyDown(e){\n\t\tconst ENTER = 13;\n\t\tif(ENTER === e.keyCode && this.state.focus){\n\t\t\te.preventDefault();\n\t\t\tif(typeof this.state.search_result[this.state.over_index] != typeof undefined ){\n\t\t\t\tthis.onSelect(this.state.search_result[this.state.over_index]);\n\t\t\t}\n\t\t} else {\n\t\t\tthis.setState({focus: true});\n\t\t}\n\t}\n\tonKeyUp(e){\n\n\t\tif(!this.state.focus) return;\n\n\t\tconst ESC = 27;\n\t\tconst UP = 38;\n\t\tconst DOWN = 40;\n\n\t\tif(ESC === e.keyCode){\n\t\t\tthis.setState({search_result: []});\n\t\t\treturn;\n\t\t}\n\t\telse if(UP === e.keyCode){\n\t\t\te.preventDefault();\n\t\t\tthis.state.over_index--;\n\t\t} else if(DOWN === e.keyCode){\n\t\t\te.preventDefault();\n\t\t\tthis.state.over_index++;\n\t\t}\n\t\tif(this.state.over_index > this.state.search_result.length){\n\t\t\tthis.state.over_index = this.state.search_result.length;\n\t\t} else if(this.state.over_index < 0) {\n\t\t\tthis.state.over_index = 0;\n\t\t}\n\n\t\tthis.setState({over_index: this.state.over_index });\n\t}\n\n\t/**\n\t * ------------------------------------------------\n\t * other functions\n\t * ------------------------------------------------\n\t */\n}\n\n/**\n * property defaults\n */\nSearch.defaultProps = {\n\tusers: [],\n};\n\n/**\n * define property types\n */\nSearch.propTypes = {\n\tusers: PropTypes.array.isRequired,\n\tselected: PropTypes.array.isRequired,\n\tlanguages: PropTypes.object.isRequired,\n\tonSelect: PropTypes.func.isRequired,\n};\n\n/**\n * export component to public\n */\nexport default Search;\n","import PropTypes from 'prop-types';\n\nconst Delete = ({onClick}) => {\n\treturn (\n\t\t<span\n\t\t\tclassName=\"author-item__delete\"\n\t\t\tonClick={onClick}\n\t\t>\n\t\t\t×\n\t\t</span>\n\t)\n}\n\nconst ProfileLink = ({author}) => {\n\tconst {ID,display_name} = author;\n\tif(ID > 0){\n\t\treturn <a href={`/wp-admin/user-edit.php?user_id=${ID}`} target=\"_blank\">{display_name}</a>\n\t}\n\treturn display_name\n}\n\nconst AuthorItem = ({author, isMainAuthor, index, onUnselect, onChangePosition})=>{\n\n\treturn (\n\t\t<div\n\t\t\tclassName={`author-item${(isMainAuthor)?\" is-main-author\":\"\"}${(author.ID < 0)?\" is-new-author\":\"\"}`}\n\t\t>\n\t\t\t\t<span className=\"autor-item__name\">\n\t\t\t\t\t<ProfileLink author={author} />\n\t\t\t\t\t<span className=\"author-item__nicename\">{author.user_nicename}</span>\n\t\t\t\t</span>\n\n\t\t\t{isMainAuthor? null : <Delete onClick={onUnselect} /> }\n\n\t\t\t<span\n\t\t\t\tclassName=\"author-item__move author-item__up\"\n\t\t\t\tonClick={()=>onChangePosition(index-1)}\n\t\t\t>\n\t\t\t\t\t▲\n\t\t\t\t</span>\n\t\t\t<span\n\t\t\t\tclassName=\"author-item__move author-item__down\"\n\t\t\t\tonClick={()=>onChangePosition(index+1)}\n\t\t\t>\n\t\t\t\t\t▼\n\t\t\t\t</span>\n\t\t\t<input type=\"hidden\" name=\"additional_authors[ids][]\" value={author.ID} />\n\t\t\t<input type=\"hidden\" name=\"additional_authors[names][]\" value={author.display_name} />\n\t\t</div>\n\t)\n\n}\n\n/**\n * property defaults\n */\nAuthorItem.defaultProps = {\n\tauthor: {\n\t\tID: -1,\n\t\tdisplay_name: \"\",\n\t\tuser_login: \"\",\n\t},\n\tclassName: \"\",\n};\n\n/**\n * define property types\n */\nAuthorItem.propTypes = {\n\tauthor: PropTypes.object.isRequired,\n\tindex: PropTypes.number.isRequired,\n\tonUnselect: PropTypes.func.isRequired,\n\tonChangePosition: PropTypes.func.isRequired,\n\tisMainAuthor: PropTypes.bool.isRequired,\n};\n\n/**\n * export component to public\n */\nexport default AuthorItem;","import {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport _ from 'underscore';\n\nimport Search from './search.jsx';\nimport AuthorItem from './author-item.jsx';\n\nclass MetaBox extends Component {\n\t\n\t/**\n\t * ------------------------------------------------\n\t * lifecycle\n\t * ------------------------------------------------\n\t */\n\tconstructor(props) {\n\t\tsuper(props);\n\t\t\n\t\tthis.state = {\n\t\t\tusers: props.users,\n\t\t\tselected: this.props.selected,\n\t\t\tnew_user_id: -1,\n\t\t};\n\t\t\n\t}\n\n\tcomponentDidMount(){\n\t\tthis.dispatchChanged();\n\t\tthis.getMainUserControl();\n\t}\n\t\n\t/**\n\t * ------------------------------------------------\n\t * rendering\n\t * ------------------------------------------------\n\t */\n\trender() {\n\t\tconst {language, isGutenbergActive} = this.props;\n\t\tconst {selected, users, new_users, main_author} = this.state;\n\t\tlet gutenbergInfo = null;\n\t\tif(isGutenbergActive){\n\t\t\tgutenbergInfo = <input type=\"hidden\" name=\"additional_authors_is_gutenberg\" value=\"it-is\" />\n\t\t}\n\n\t\tconst selectedIds = selected.map(u=>u.ID);\n\n\t\treturn (\n\t\t\t<div className=\"additional-authors\">\n\t\t\t\t{gutenbergInfo}\n\t\t\t\t<Search\n\t\t\t\t\tusers={users}\n\t\t\t\t\tselected={selected}\n\t\t\t\t\tlanguages={language}\n\t\t\t\t onSelect={this.onSelect.bind(this)}\n\t\t\t\t/>\n\t\t\t\t\n\t\t\t\t<hr/>\n\t\t\t\t\n\t\t\t\t<p><i>{language.description}</i></p>\n\n\t\t\t\t<div>\n\n\t\t\t\t\t{selected.map((id, index)=>{\n\t\t\t\t\t\tif(isGutenbergActive && index === 0) return null;\n\t\t\t\t\t\tfor(const key in users){\n\t\t\t\t\t\t\tif(!users.hasOwnProperty(key)) continue;\n\t\t\t\t\t\t\tconst _user = users[key];\n\t\t\t\t\t\t\tif(parseInt(_user.ID) === parseInt(id)){\n\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t<AuthorItem\n\t\t\t\t\t\t\t\t\t\tkey={id}\n\t\t\t\t\t\t\t\t\t\tindex={index}\n\t\t\t\t\t\t\t\t\t\tauthor={_user}\n\t\t\t\t\t\t\t\t\t onUnselect={this.onUnselect.bind(this,_user)}\n\t\t\t\t\t\t\t\t\t onChangePosition={this.onChangePosition.bind(this,_user, index)}\n\t\t\t\t\t\t\t\t\t isMainAuthor={(index === 0)}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t})}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t)\n\t}\n\t\n\t/**\n\t * ------------------------------------------------\n\t * events\n\t * ------------------------------------------------\n\t */\n\tonSelect(author){\n\t\tif(author.ID == 0){\n\t\t\tauthor.ID = this.state.new_user_id--;\n\t\t\tthis.state.users.push(author);\n\t\t}\n\t\t\n\t\tthis.state.selected.push(author.ID);\n\t\tthis.state.selected = _.unique(this.state.selected);\n\t\tthis.setState({ selected: this.state.selected });\n\n\t\tthis.dispatchChanged();\n\t\t\n\t}\n\tonUnselect(author){\n\t\tlet selected = [];\n\t\tif(this.state.main_author == author.ID){\n\t\t\tconsole.log(\"you cannot delete main author\");\n\t\t\treturn;\n\t\t}\n\t\tfor(let _id of this.state.selected){\n\t\t\t\n\t\t\tif(_id == author.ID) continue;\n\t\t\tselected.push(_id);\n\t\t}\n\t\tthis.setState({selected: selected});\n\t\tthis.dispatchChanged()\n\t}\n\tonChangePosition(user, from, to){\n\t\tlet selected = [];\n\t\t\n\t\t/**\n\t\t * new user cannot be on first position\n\t\t */\n\t\tif(to == 0 && user.ID <= 0) return;\n\t\t\n\t\tfor(let index in this.state.selected){\n\t\t\t\n\t\t\tif(!this.state.selected.hasOwnProperty(index)) continue;\n\t\t\t\n\t\t\tif(index == from){\n\t\t\t\tselected.push(this.state.selected[to]);\n\t\t\t} else if( index == to){\n\t\t\t\tselected.push(this.state.selected[from]);\n\t\t\t} else {\n\t\t\t\tselected.push(this.state.selected[index]);\n\t\t\t}\n\t\t}\n\t\tthis.setMainUserID(selected[0]);\n\t\tthis.setState({selected: selected, main_author: this.getMainUserID()});\n\t\tthis.dispatchChanged();\n\t}\n\tonMainAuthorChanged(e){\n\t\tconst author_id = e.target.value;\n\t\t\n\t\t/**\n\t\t * remove if already in selecteds\n\t\t * @type {number}\n\t\t */\n\t\tlet index = 0;\n\t\twhile(index < this.state.selected.length){\n\t\t\tif(this.state.selected[index] === author_id){\n\t\t\t\tthis.state.selected.splice(index,1);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tindex++;\n\t\t}\n\t\t\n\t\t/**\n\t\t * add to top as main author\n\t\t */\n\t\tthis.state.selected.unshift(author_id);\n\t\t\n\t\t// update main author\n\t\tthis.setState({selected:this.state.selected});\n\t}\n\t\n\t/**\n\t * ------------------------------------------------\n\t * other functions\n\t * ------------------------------------------------\n\t */\n\tgetMainUserControl(){\n\t\tif(this.props.isGutenbergActive) return null;\n\n\t\tif(this._main_user_select != null) return this._main_user_select;\n\t\tlet control = document.getElementById(\"post_author_override\");\n\t\tif(control == null)\n\t\t\tcontrol = document.getElementById(\"post-author-selector-1\");\n\n\t\tif(control != null){\n\t\t\tthis._main_user_select = control;\n\t\t\tthis._main_user_select.addEventListener(\"change\",this.onMainAuthorChanged.bind(this));\n\t\t}\n\t\treturn this._main_user_select;\n\t}\n\tsetMainUserID(user_id){\n\t\tconst control = this.getMainUserControl();\n\t\tif(typeof control !== typeof undefined && control != null){\n\t\t\tcontrol.value = user_id;\n\t\t\tcontrol.dispatchEvent(new Event(\"change\"));\n\t\t}\n\n\t}\n\tgetMainUserID(){\n\t\tconst control = this.getMainUserControl();\n\t\tif(typeof control !== typeof undefined && control !== null) return control.value;\n \t\treturn -1;\n\t}\n\tisSelected(user_id){\n\t\tfor(let _uid of this.state.selected){\n\t\t\tif(_uid === user_id) return true;\n\t\t}\n\t\treturn false;\n\t}\n\tdispatchChanged(){\n\t\tclearTimeout(this.dispatchTimeout);\n\t\tthis.dispatchTimeout = setTimeout(()=>{\n\t\t\tconst users = [];\n\t\t\tfor(const uid of this.state.selected){\n\t\t\t\tfor(const user of this.props.users){\n\t\t\t\t\tif(parseInt(user.ID) === parseInt(uid)){\n\t\t\t\t\t\tusers.push({...user});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.props.onAuthorsChange(users);\n\t\t}, 300);\n\n\t}\n}\n\n/**\n * property defaults\n */\nMetaBox.defaultProps = {\n\tusers: [],\n\tlanguage: {},\n\tonAuthorsChange: () => {},\n};\n\n/**\n * define property types\n */\nMetaBox.propTypes = {\n\tisGutenbergActive: PropTypes.bool.isRequired,\n\tusers: PropTypes.array.isRequired,\n\tselected: PropTypes.array.isRequired,\n\tlanguage: PropTypes.object.isRequired,\n\tonAuthorsChange: PropTypes.func,\n};\n\n/**\n * export component to public\n */\nexport default MetaBox;","import ReactDOM from 'react-dom';\nimport MetaBox from './meta-box/meta-box.jsx';\n\nimport \"./meta-box.scss\";\n\n/**\n * wait for dom to be ready so all plugins etc are loaded\n */\ndocument.addEventListener(\"DOMContentLoaded\", function(event) {\n\t\n\t/**\n\t * append app to grid app root\n\t */\n\t\n\tconst {language, users, selected, root_id} = AdditionalAuthors;\n\n\tReactDOM.render(\n\t\t<MetaBox\n\t\t\tisGutenbergActive={false}\n\t\t\tlanguage={language}\n\t\t\tusers={users}\n\t\t selected={selected}\n\t\t\tonAuthorsChange={(authors)=>{\n\t\t\t\tdocument.dispatchEvent(new CustomEvent(\"onAdditionalAuthorsChange\", { detail: authors }));\n\t\t\t}}\n\t\t/>,\n\t\tdocument.getElementById(root_id)\n\t);\n});"],"names":["ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","module","exports","shim","props","propName","componentName","location","propFullName","secret","err","Error","name","getShim","isRequired","ReactPropTypes","array","bigint","bool","func","number","object","string","symbol","any","arrayOf","element","elementType","instanceOf","node","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","PropTypes","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","window","VERSION","root","self","global","Function","ArrayProto","Array","ObjProto","SymbolProto","push","slice","toString","supportsArrayBuffer","ArrayBuffer","supportsDataView","DataView","nativeIsArray","isArray","nativeKeys","keys","nativeCreate","create","nativeIsView","isView","_isNaN","isNaN","_isFinite","isFinite","hasEnumBug","propertyIsEnumerable","nonEnumerableProps","MAX_ARRAY_INDEX","Math","pow","restArguments","startIndex","length","max","arguments","rest","index","this","args","apply","isObject","type","isNull","isUndefined","isBoolean","isElement","nodeType","tagTester","tag","isFunction","nodelist","document","childNodes","Int8Array","hasStringTagBug","isIE11","Map","isDataView","getInt8","isArrayBuffer","buffer","has","isArguments","isSymbol","parseFloat","isNumber","constant","createSizePropertyCheck","getSizeProperty","collection","sizeProperty","shallowProperty","typedArrayPattern","test","collectNonEnumProps","hash","l","i","contains","emulatedSet","nonEnumIdx","constructor","proto","isEmpty","isString","isMatch","attrs","_keys","_","_wrapped","toBufferView","bufferSource","Uint8Array","byteOffset","valueOf","toJSON","String","tagDataView","eq","b","aStack","bStack","deepEq","className","areArrays","aCtor","bCtor","pop","isEqual","allKeys","ie11fingerprint","methods","weakMapMethods","forEachName","commonInit","mapTail","mapMethods","concat","setMethods","values","pairs","invert","result","functions","names","sort","createAssigner","keysFunc","defaults","source","baseCreate","Ctor","extendOwn","clone","extend","tap","interceptor","toPath","path","deepGet","defaultValue","identity","matcher","property","optimizeCb","context","argCount","accumulator","baseIteratee","iteratee","Infinity","cb","mapObject","results","currentKey","noop","propertyOf","times","accum","random","min","floor","Date","now","getTime","createEscaper","map","escaper","match","join","testRegexp","RegExp","replaceRegexp","replace","templateSettings","evaluate","interpolate","escape","noMatch","escapes","escapeRegExp","escapeChar","bareIdentifier","template","text","settings","oldSettings","offset","render","argument","variable","e","data","fallback","idCounter","uniqueId","prefix","id","chain","instance","_chain","executeBound","sourceFunc","boundFunc","callingContext","partial","boundArgs","placeholder","bound","position","TypeError","callArgs","flatten","input","depth","strict","output","idx","j","len","bind","memoize","hasher","cache","address","wait","setTimeout","delay","throttle","options","timeout","previous","later","leading","throttled","_now","remaining","clearTimeout","trailing","cancel","debounce","immediate","passed","debounced","_args","wrap","wrapper","negate","predicate","compose","start","after","before","memo","findKey","createPredicateIndexFinder","dir","sortedIndex","low","high","mid","createIndexFinder","predicateFind","item","findIndex","findLastIndex","find","findWhere","each","createReduce","initial","reducer","filter","list","reject","every","some","fromIndex","guard","indexOf","contextPath","method","pluck","where","computed","lastComputed","v","reStrSymbol","toArray","sample","last","rand","temp","shuffle","sortBy","criteria","left","right","group","behavior","partition","pass","size","keyInObj","pick","first","compact","Boolean","otherArrays","difference","uniq","isSorted","seen","arrays","intersection","argsLength","unzip","range","stop","step","ceil","chunk","count","chainResult","mixin","SearchItem","Component","super","state","over","isOver","componentWillReceiveProps","nextProps","display_name","author","onMouseOver","onMouseOut","onClick","is_over","setState","onSelect","NewItem","Search","query","over_index","search_result","focus","onKeyUp","languages","label","onKeyDown","onChange","onFocus","onFocusSearch","onBlur","renderList","selected","newItem","onNewItem","ID","target","users","user","toLowerCase","parseInt","unshift","closeTimeout","user_nicename","keyCode","preventDefault","defaultProps","propTypes","Delete","ProfileLink","href","AuthorItem","isMainAuthor","onUnselect","onChangePosition","user_login","MetaBox","new_user_id","componentDidMount","dispatchChanged","getMainUserControl","language","isGutenbergActive","new_users","main_author","gutenbergInfo","u","description","_user","_id","console","log","from","to","setMainUserID","getMainUserID","onMainAuthorChanged","author_id","splice","_main_user_select","control","getElementById","addEventListener","user_id","dispatchEvent","Event","isSelected","_uid","dispatchTimeout","uid","onAuthorsChange","event","root_id","AdditionalAuthors","ReactDOM","authors","CustomEvent","detail"],"sourceRoot":""}1 {"version":3,"file":"additional-authors-meta-box.js","mappings":"uCASA,IAAIA,EAAuB,EAAQ,KAEnC,SAASC,IAAiB,CAC1B,SAASC,IAA0B,CACnCA,EAAuBC,kBAAoBF,EAE3CG,EAAOC,QAAU,WACf,SAASC,EAAKC,EAAOC,EAAUC,EAAeC,EAAUC,EAAcC,GACpE,GAAIA,IAAWZ,EAAf,CAIA,IAAIa,EAAM,IAAIC,MACZ,mLAKF,MADAD,EAAIE,KAAO,sBACLF,CAPN,CAQF,CAEA,SAASG,IACP,OAAOV,CACT,CAHAA,EAAKW,WAAaX,EAMlB,IAAIY,EAAiB,CACnBC,MAAOb,EACPc,OAAQd,EACRe,KAAMf,EACNgB,KAAMhB,EACNiB,OAAQjB,EACRkB,OAAQlB,EACRmB,OAAQnB,EACRoB,OAAQpB,EAERqB,IAAKrB,EACLsB,QAASZ,EACTa,QAASvB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AO,CACR,CACAxB,eAAAA,GACCnJ,aAAaxM,KAAKwX,iBAClBxX,KAAKwX,gBAAkB3L,YAAW,KACjC,MAAMwI,EAAQ,GACd,IAAI,MAAMoD,KAAOzX,KAAKmS,MAAM6B,SAC3B,IAAI,MAAMM,KAAQtU,KAAKtG,MAAM2a,MACzBG,SAASF,EAAKH,MAAQK,SAASiD,IACjCpD,EAAMrW,KAAK,IAAIsW,IAIlBtU,KAAKtG,MAAMge,gBAAgBrD,EAAM,GAC/B,IAEJ,EAMDmB,GAAQV,aAAe,CACtBT,MAAO,GACPwB,SAAU,CAAC,EACX6B,gBAAiBA,QAMlBlC,GAAQT,UAAY,CACnBe,kBAAmBpa,IAAAA,KAAetB,WAClCia,MAAO3Y,IAAAA,MAAgBtB,WACvB4Z,SAAUtY,IAAAA,MAAgBtB,WAC1Byb,SAAUna,IAAAA,OAAiBtB,WAC3Bsd,gBAAiBhc,IAAAA,MAMlB,YC7OAoF,SAASoW,iBAAiB,oBAAoB,SAASS,GAMtD,MAAM,SAAC9B,EAAQ,MAAExB,EAAK,SAAEL,EAAQ,QAAE4D,GAAWC,kBAE7CC,IAAAA,QACCpF,EAAAA,EAAAA,eAAC8C,GAAO,CACPM,mBAAmB,EACnBD,SAAUA,EACVxB,MAAOA,EACJL,SAAUA,EACb0D,gBAAkBK,IACjBjX,SAASsW,cAAc,IAAIY,YAAY,4BAA6B,CAAEC,OAAQF,IAAW,IAG3FjX,SAASmW,eAAeW,GAE1B,G","sources":["webpack://@palasthotel/additional-authors/./node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack://@palasthotel/additional-authors/webpack/bootstrap","webpack://@palasthotel/additional-authors/webpack/runtime/compat get default export","webpack://@palasthotel/additional-authors/webpack/runtime/define property getters","webpack://@palasthotel/additional-authors/webpack/runtime/hasOwnProperty shorthand","webpack://@palasthotel/additional-authors/webpack/runtime/make namespace object","webpack://@palasthotel/additional-authors/external window \"React\"","webpack://@palasthotel/additional-authors/external window \"ReactDOM\"","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_setup.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/restArguments.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isObject.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isNull.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isUndefined.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isBoolean.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isElement.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_tagTester.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isString.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isNumber.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isDate.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isRegExp.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isError.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isSymbol.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isArrayBuffer.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isFunction.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_hasObjectTag.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_stringTagBug.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isDataView.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isArray.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_has.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isArguments.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isFinite.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isNaN.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/constant.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_createSizePropertyCheck.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_shallowProperty.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_getByteLength.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_isBufferLike.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isTypedArray.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_getLength.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_collectNonEnumProps.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/keys.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isEmpty.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isMatch.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/underscore.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_toBufferView.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isEqual.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/allKeys.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_methodFingerprint.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isMap.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isWeakMap.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isSet.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/isWeakSet.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/values.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/pairs.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/invert.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/functions.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_createAssigner.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/extend.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/extendOwn.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/defaults.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_baseCreate.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/create.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/clone.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/tap.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/toPath.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_toPath.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_deepGet.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/get.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/has.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/identity.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/matcher.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/property.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_optimizeCb.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_baseIteratee.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/iteratee.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_cb.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/mapObject.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/noop.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/propertyOf.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/times.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/random.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/now.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_createEscaper.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_escapeMap.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/escape.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/unescape.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_unescapeMap.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/templateSettings.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/template.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/result.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/uniqueId.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/chain.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_executeBound.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/partial.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/bind.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_isArrayLike.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_flatten.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/bindAll.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/memoize.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/delay.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/defer.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/throttle.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/debounce.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/wrap.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/negate.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/compose.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/after.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/before.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/once.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/findKey.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_createPredicateIndexFinder.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/findIndex.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/findLastIndex.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/sortedIndex.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_createIndexFinder.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/indexOf.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/lastIndexOf.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/find.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/findWhere.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/each.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/map.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_createReduce.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/reduce.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/reduceRight.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/filter.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/reject.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/every.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/some.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/contains.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/invoke.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/pluck.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/where.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/max.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/min.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/toArray.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/sample.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/shuffle.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/sortBy.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_group.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/groupBy.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/indexBy.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/countBy.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/partition.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/size.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_keyInObj.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/pick.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/omit.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/initial.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/first.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/rest.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/last.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/compact.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/flatten.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/difference.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/without.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/uniq.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/union.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/intersection.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/unzip.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/zip.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/object.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/range.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/chunk.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/_chainResult.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/mixin.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/underscore-array-methods.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/underscore@1.13.6/node_modules/underscore/modules/index-default.js","webpack://@palasthotel/additional-authors/./src/meta-box/search-item.jsx","webpack://@palasthotel/additional-authors/./src/meta-box/new-item.jsx","webpack://@palasthotel/additional-authors/./src/meta-box/search.jsx","webpack://@palasthotel/additional-authors/./src/meta-box/author-item.jsx","webpack://@palasthotel/additional-authors/./src/meta-box/meta-box.jsx","webpack://@palasthotel/additional-authors/./src/meta-box.js"],"sourcesContent":["/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"React\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"ReactDOM\"];","// Current version.\nexport var VERSION = '1.13.6';\n\n// Establish the root object, `window` (`self`) in the browser, `global`\n// on the server, or `this` in some virtual machines. We use `self`\n// instead of `window` for `WebWorker` support.\nexport var root = (typeof self == 'object' && self.self === self && self) ||\n (typeof global == 'object' && global.global === global && global) ||\n Function('return this')() ||\n {};\n\n// Save bytes in the minified (but not gzipped) version:\nexport var ArrayProto = Array.prototype, ObjProto = Object.prototype;\nexport var SymbolProto = typeof Symbol !== 'undefined' ? Symbol.prototype : null;\n\n// Create quick reference variables for speed access to core prototypes.\nexport var push = ArrayProto.push,\n slice = ArrayProto.slice,\n toString = ObjProto.toString,\n hasOwnProperty = ObjProto.hasOwnProperty;\n\n// Modern feature detection.\nexport var supportsArrayBuffer = typeof ArrayBuffer !== 'undefined',\n supportsDataView = typeof DataView !== 'undefined';\n\n// All **ECMAScript 5+** native function implementations that we hope to use\n// are declared here.\nexport var nativeIsArray = Array.isArray,\n nativeKeys = Object.keys,\n nativeCreate = Object.create,\n nativeIsView = supportsArrayBuffer && ArrayBuffer.isView;\n\n// Create references to these builtin functions because we override them.\nexport var _isNaN = isNaN,\n _isFinite = isFinite;\n\n// Keys in IE < 9 that won't be iterated by `for key in ...` and thus missed.\nexport var hasEnumBug = !{toString: null}.propertyIsEnumerable('toString');\nexport var nonEnumerableProps = ['valueOf', 'isPrototypeOf', 'toString',\n 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString'];\n\n// The largest integer that can be represented exactly.\nexport var MAX_ARRAY_INDEX = Math.pow(2, 53) - 1;\n","// Some functions take a variable number of arguments, or a few expected\n// arguments at the beginning and then a variable number of values to operate\n// on. This helper accumulates all remaining arguments past the function’s\n// argument length (or an explicit `startIndex`), into an array that becomes\n// the last argument. Similar to ES6’s \"rest parameter\".\nexport default function restArguments(func, startIndex) {\n startIndex = startIndex == null ? func.length - 1 : +startIndex;\n return function() {\n var length = Math.max(arguments.length - startIndex, 0),\n rest = Array(length),\n index = 0;\n for (; index < length; index++) {\n rest[index] = arguments[index + startIndex];\n }\n switch (startIndex) {\n case 0: return func.call(this, rest);\n case 1: return func.call(this, arguments[0], rest);\n case 2: return func.call(this, arguments[0], arguments[1], rest);\n }\n var args = Array(startIndex + 1);\n for (index = 0; index < startIndex; index++) {\n args[index] = arguments[index];\n }\n args[startIndex] = rest;\n return func.apply(this, args);\n };\n}\n","// Is a given variable an object?\nexport default function isObject(obj) {\n var type = typeof obj;\n return type === 'function' || (type === 'object' && !!obj);\n}\n","// Is a given value equal to null?\nexport default function isNull(obj) {\n return obj === null;\n}\n","// Is a given variable undefined?\nexport default function isUndefined(obj) {\n return obj === void 0;\n}\n","import { toString } from './_setup.js';\n\n// Is a given value a boolean?\nexport default function isBoolean(obj) {\n return obj === true || obj === false || toString.call(obj) === '[object Boolean]';\n}\n","// Is a given value a DOM element?\nexport default function isElement(obj) {\n return !!(obj && obj.nodeType === 1);\n}\n","import { toString } from './_setup.js';\n\n// Internal function for creating a `toString`-based type tester.\nexport default function tagTester(name) {\n var tag = '[object ' + name + ']';\n return function(obj) {\n return toString.call(obj) === tag;\n };\n}\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('String');\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('Number');\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('Date');\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('RegExp');\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('Error');\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('Symbol');\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('ArrayBuffer');\n","import tagTester from './_tagTester.js';\nimport { root } from './_setup.js';\n\nvar isFunction = tagTester('Function');\n\n// Optimize `isFunction` if appropriate. Work around some `typeof` bugs in old\n// v8, IE 11 (#1621), Safari 8 (#1929), and PhantomJS (#2236).\nvar nodelist = root.document && root.document.childNodes;\nif (typeof /./ != 'function' && typeof Int8Array != 'object' && typeof nodelist != 'function') {\n isFunction = function(obj) {\n return typeof obj == 'function' || false;\n };\n}\n\nexport default isFunction;\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('Object');\n","import { supportsDataView } from './_setup.js';\nimport hasObjectTag from './_hasObjectTag.js';\n\n// In IE 10 - Edge 13, `DataView` has string tag `'[object Object]'`.\n// In IE 11, the most common among them, this problem also applies to\n// `Map`, `WeakMap` and `Set`.\nexport var hasStringTagBug = (\n supportsDataView && hasObjectTag(new DataView(new ArrayBuffer(8)))\n ),\n isIE11 = (typeof Map !== 'undefined' && hasObjectTag(new Map));\n","import tagTester from './_tagTester.js';\nimport isFunction from './isFunction.js';\nimport isArrayBuffer from './isArrayBuffer.js';\nimport { hasStringTagBug } from './_stringTagBug.js';\n\nvar isDataView = tagTester('DataView');\n\n// In IE 10 - Edge 13, we need a different heuristic\n// to determine whether an object is a `DataView`.\nfunction ie10IsDataView(obj) {\n return obj != null && isFunction(obj.getInt8) && isArrayBuffer(obj.buffer);\n}\n\nexport default (hasStringTagBug ? ie10IsDataView : isDataView);\n","import { nativeIsArray } from './_setup.js';\nimport tagTester from './_tagTester.js';\n\n// Is a given value an array?\n// Delegates to ECMA5's native `Array.isArray`.\nexport default nativeIsArray || tagTester('Array');\n","import { hasOwnProperty } from './_setup.js';\n\n// Internal function to check whether `key` is an own property name of `obj`.\nexport default function has(obj, key) {\n return obj != null && hasOwnProperty.call(obj, key);\n}\n","import tagTester from './_tagTester.js';\nimport has from './_has.js';\n\nvar isArguments = tagTester('Arguments');\n\n// Define a fallback version of the method in browsers (ahem, IE < 9), where\n// there isn't any inspectable \"Arguments\" type.\n(function() {\n if (!isArguments(arguments)) {\n isArguments = function(obj) {\n return has(obj, 'callee');\n };\n }\n}());\n\nexport default isArguments;\n","import { _isFinite } from './_setup.js';\nimport isSymbol from './isSymbol.js';\n\n// Is a given object a finite number?\nexport default function isFinite(obj) {\n return !isSymbol(obj) && _isFinite(obj) && !isNaN(parseFloat(obj));\n}\n","import { _isNaN } from './_setup.js';\nimport isNumber from './isNumber.js';\n\n// Is the given value `NaN`?\nexport default function isNaN(obj) {\n return isNumber(obj) && _isNaN(obj);\n}\n","// Predicate-generating function. Often useful outside of Underscore.\nexport default function constant(value) {\n return function() {\n return value;\n };\n}\n","import { MAX_ARRAY_INDEX } from './_setup.js';\n\n// Common internal logic for `isArrayLike` and `isBufferLike`.\nexport default function createSizePropertyCheck(getSizeProperty) {\n return function(collection) {\n var sizeProperty = getSizeProperty(collection);\n return typeof sizeProperty == 'number' && sizeProperty >= 0 && sizeProperty <= MAX_ARRAY_INDEX;\n }\n}\n","// Internal helper to generate a function to obtain property `key` from `obj`.\nexport default function shallowProperty(key) {\n return function(obj) {\n return obj == null ? void 0 : obj[key];\n };\n}\n","import shallowProperty from './_shallowProperty.js';\n\n// Internal helper to obtain the `byteLength` property of an object.\nexport default shallowProperty('byteLength');\n","import createSizePropertyCheck from './_createSizePropertyCheck.js';\nimport getByteLength from './_getByteLength.js';\n\n// Internal helper to determine whether we should spend extensive checks against\n// `ArrayBuffer` et al.\nexport default createSizePropertyCheck(getByteLength);\n","import { supportsArrayBuffer, nativeIsView, toString } from './_setup.js';\nimport isDataView from './isDataView.js';\nimport constant from './constant.js';\nimport isBufferLike from './_isBufferLike.js';\n\n// Is a given value a typed array?\nvar typedArrayPattern = /\\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\\]/;\nfunction isTypedArray(obj) {\n // `ArrayBuffer.isView` is the most future-proof, so use it when available.\n // Otherwise, fall back on the above regular expression.\n return nativeIsView ? (nativeIsView(obj) && !isDataView(obj)) :\n isBufferLike(obj) && typedArrayPattern.test(toString.call(obj));\n}\n\nexport default supportsArrayBuffer ? isTypedArray : constant(false);\n","import shallowProperty from './_shallowProperty.js';\n\n// Internal helper to obtain the `length` property of an object.\nexport default shallowProperty('length');\n","import { nonEnumerableProps, ObjProto } from './_setup.js';\nimport isFunction from './isFunction.js';\nimport has from './_has.js';\n\n// Internal helper to create a simple lookup structure.\n// `collectNonEnumProps` used to depend on `_.contains`, but this led to\n// circular imports. `emulatedSet` is a one-off solution that only works for\n// arrays of strings.\nfunction emulatedSet(keys) {\n var hash = {};\n for (var l = keys.length, i = 0; i < l; ++i) hash[keys[i]] = true;\n return {\n contains: function(key) { return hash[key] === true; },\n push: function(key) {\n hash[key] = true;\n return keys.push(key);\n }\n };\n}\n\n// Internal helper. Checks `keys` for the presence of keys in IE < 9 that won't\n// be iterated by `for key in ...` and thus missed. Extends `keys` in place if\n// needed.\nexport default function collectNonEnumProps(obj, keys) {\n keys = emulatedSet(keys);\n var nonEnumIdx = nonEnumerableProps.length;\n var constructor = obj.constructor;\n var proto = (isFunction(constructor) && constructor.prototype) || ObjProto;\n\n // Constructor is a special case.\n var prop = 'constructor';\n if (has(obj, prop) && !keys.contains(prop)) keys.push(prop);\n\n while (nonEnumIdx--) {\n prop = nonEnumerableProps[nonEnumIdx];\n if (prop in obj && obj[prop] !== proto[prop] && !keys.contains(prop)) {\n keys.push(prop);\n }\n }\n}\n","import isObject from './isObject.js';\nimport { nativeKeys, hasEnumBug } from './_setup.js';\nimport has from './_has.js';\nimport collectNonEnumProps from './_collectNonEnumProps.js';\n\n// Retrieve the names of an object's own properties.\n// Delegates to **ECMAScript 5**'s native `Object.keys`.\nexport default function keys(obj) {\n if (!isObject(obj)) return [];\n if (nativeKeys) return nativeKeys(obj);\n var keys = [];\n for (var key in obj) if (has(obj, key)) keys.push(key);\n // Ahem, IE < 9.\n if (hasEnumBug) collectNonEnumProps(obj, keys);\n return keys;\n}\n","import getLength from './_getLength.js';\nimport isArray from './isArray.js';\nimport isString from './isString.js';\nimport isArguments from './isArguments.js';\nimport keys from './keys.js';\n\n// Is a given array, string, or object empty?\n// An \"empty\" object has no enumerable own-properties.\nexport default function isEmpty(obj) {\n if (obj == null) return true;\n // Skip the more expensive `toString`-based type checks if `obj` has no\n // `.length`.\n var length = getLength(obj);\n if (typeof length == 'number' && (\n isArray(obj) || isString(obj) || isArguments(obj)\n )) return length === 0;\n return getLength(keys(obj)) === 0;\n}\n","import keys from './keys.js';\n\n// Returns whether an object has a given set of `key:value` pairs.\nexport default function isMatch(object, attrs) {\n var _keys = keys(attrs), length = _keys.length;\n if (object == null) return !length;\n var obj = Object(object);\n for (var i = 0; i < length; i++) {\n var key = _keys[i];\n if (attrs[key] !== obj[key] || !(key in obj)) return false;\n }\n return true;\n}\n","import { VERSION } from './_setup.js';\n\n// If Underscore is called as a function, it returns a wrapped object that can\n// be used OO-style. This wrapper holds altered versions of all functions added\n// through `_.mixin`. Wrapped objects may be chained.\nexport default function _(obj) {\n if (obj instanceof _) return obj;\n if (!(this instanceof _)) return new _(obj);\n this._wrapped = obj;\n}\n\n_.VERSION = VERSION;\n\n// Extracts the result from a wrapped and chained object.\n_.prototype.value = function() {\n return this._wrapped;\n};\n\n// Provide unwrapping proxies for some methods used in engine operations\n// such as arithmetic and JSON stringification.\n_.prototype.valueOf = _.prototype.toJSON = _.prototype.value;\n\n_.prototype.toString = function() {\n return String(this._wrapped);\n};\n","import getByteLength from './_getByteLength.js';\n\n// Internal function to wrap or shallow-copy an ArrayBuffer,\n// typed array or DataView to a new view, reusing the buffer.\nexport default function toBufferView(bufferSource) {\n return new Uint8Array(\n bufferSource.buffer || bufferSource,\n bufferSource.byteOffset || 0,\n getByteLength(bufferSource)\n );\n}\n","import _ from './underscore.js';\nimport { toString, SymbolProto } from './_setup.js';\nimport getByteLength from './_getByteLength.js';\nimport isTypedArray from './isTypedArray.js';\nimport isFunction from './isFunction.js';\nimport { hasStringTagBug } from './_stringTagBug.js';\nimport isDataView from './isDataView.js';\nimport keys from './keys.js';\nimport has from './_has.js';\nimport toBufferView from './_toBufferView.js';\n\n// We use this string twice, so give it a name for minification.\nvar tagDataView = '[object DataView]';\n\n// Internal recursive comparison function for `_.isEqual`.\nfunction eq(a, b, aStack, bStack) {\n // Identical objects are equal. `0 === -0`, but they aren't identical.\n // See the [Harmony `egal` proposal](https://wiki.ecmascript.org/doku.php?id=harmony:egal).\n if (a === b) return a !== 0 || 1 / a === 1 / b;\n // `null` or `undefined` only equal to itself (strict comparison).\n if (a == null || b == null) return false;\n // `NaN`s are equivalent, but non-reflexive.\n if (a !== a) return b !== b;\n // Exhaust primitive checks\n var type = typeof a;\n if (type !== 'function' && type !== 'object' && typeof b != 'object') return false;\n return deepEq(a, b, aStack, bStack);\n}\n\n// Internal recursive comparison function for `_.isEqual`.\nfunction deepEq(a, b, aStack, bStack) {\n // Unwrap any wrapped objects.\n if (a instanceof _) a = a._wrapped;\n if (b instanceof _) b = b._wrapped;\n // Compare `[[Class]]` names.\n var className = toString.call(a);\n if (className !== toString.call(b)) return false;\n // Work around a bug in IE 10 - Edge 13.\n if (hasStringTagBug && className == '[object Object]' && isDataView(a)) {\n if (!isDataView(b)) return false;\n className = tagDataView;\n }\n switch (className) {\n // These types are compared by value.\n case '[object RegExp]':\n // RegExps are coerced to strings for comparison (Note: '' + /a/i === '/a/i')\n case '[object String]':\n // Primitives and their corresponding object wrappers are equivalent; thus, `\"5\"` is\n // equivalent to `new String(\"5\")`.\n return '' + a === '' + b;\n case '[object Number]':\n // `NaN`s are equivalent, but non-reflexive.\n // Object(NaN) is equivalent to NaN.\n if (+a !== +a) return +b !== +b;\n // An `egal` comparison is performed for other numeric values.\n return +a === 0 ? 1 / +a === 1 / b : +a === +b;\n case '[object Date]':\n case '[object Boolean]':\n // Coerce dates and booleans to numeric primitive values. Dates are compared by their\n // millisecond representations. Note that invalid dates with millisecond representations\n // of `NaN` are not equivalent.\n return +a === +b;\n case '[object Symbol]':\n return SymbolProto.valueOf.call(a) === SymbolProto.valueOf.call(b);\n case '[object ArrayBuffer]':\n case tagDataView:\n // Coerce to typed array so we can fall through.\n return deepEq(toBufferView(a), toBufferView(b), aStack, bStack);\n }\n\n var areArrays = className === '[object Array]';\n if (!areArrays && isTypedArray(a)) {\n var byteLength = getByteLength(a);\n if (byteLength !== getByteLength(b)) return false;\n if (a.buffer === b.buffer && a.byteOffset === b.byteOffset) return true;\n areArrays = true;\n }\n if (!areArrays) {\n if (typeof a != 'object' || typeof b != 'object') return false;\n\n // Objects with different constructors are not equivalent, but `Object`s or `Array`s\n // from different frames are.\n var aCtor = a.constructor, bCtor = b.constructor;\n if (aCtor !== bCtor && !(isFunction(aCtor) && aCtor instanceof aCtor &&\n isFunction(bCtor) && bCtor instanceof bCtor)\n && ('constructor' in a && 'constructor' in b)) {\n return false;\n }\n }\n // Assume equality for cyclic structures. The algorithm for detecting cyclic\n // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.\n\n // Initializing stack of traversed objects.\n // It's done here since we only need them for objects and arrays comparison.\n aStack = aStack || [];\n bStack = bStack || [];\n var length = aStack.length;\n while (length--) {\n // Linear search. Performance is inversely proportional to the number of\n // unique nested structures.\n if (aStack[length] === a) return bStack[length] === b;\n }\n\n // Add the first object to the stack of traversed objects.\n aStack.push(a);\n bStack.push(b);\n\n // Recursively compare objects and arrays.\n if (areArrays) {\n // Compare array lengths to determine if a deep comparison is necessary.\n length = a.length;\n if (length !== b.length) return false;\n // Deep compare the contents, ignoring non-numeric properties.\n while (length--) {\n if (!eq(a[length], b[length], aStack, bStack)) return false;\n }\n } else {\n // Deep compare objects.\n var _keys = keys(a), key;\n length = _keys.length;\n // Ensure that both objects contain the same number of properties before comparing deep equality.\n if (keys(b).length !== length) return false;\n while (length--) {\n // Deep compare each member\n key = _keys[length];\n if (!(has(b, key) && eq(a[key], b[key], aStack, bStack))) return false;\n }\n }\n // Remove the first object from the stack of traversed objects.\n aStack.pop();\n bStack.pop();\n return true;\n}\n\n// Perform a deep comparison to check if two objects are equal.\nexport default function isEqual(a, b) {\n return eq(a, b);\n}\n","import isObject from './isObject.js';\nimport { hasEnumBug } from './_setup.js';\nimport collectNonEnumProps from './_collectNonEnumProps.js';\n\n// Retrieve all the enumerable property names of an object.\nexport default function allKeys(obj) {\n if (!isObject(obj)) return [];\n var keys = [];\n for (var key in obj) keys.push(key);\n // Ahem, IE < 9.\n if (hasEnumBug) collectNonEnumProps(obj, keys);\n return keys;\n}\n","import getLength from './_getLength.js';\nimport isFunction from './isFunction.js';\nimport allKeys from './allKeys.js';\n\n// Since the regular `Object.prototype.toString` type tests don't work for\n// some types in IE 11, we use a fingerprinting heuristic instead, based\n// on the methods. It's not great, but it's the best we got.\n// The fingerprint method lists are defined below.\nexport function ie11fingerprint(methods) {\n var length = getLength(methods);\n return function(obj) {\n if (obj == null) return false;\n // `Map`, `WeakMap` and `Set` have no enumerable keys.\n var keys = allKeys(obj);\n if (getLength(keys)) return false;\n for (var i = 0; i < length; i++) {\n if (!isFunction(obj[methods[i]])) return false;\n }\n // If we are testing against `WeakMap`, we need to ensure that\n // `obj` doesn't have a `forEach` method in order to distinguish\n // it from a regular `Map`.\n return methods !== weakMapMethods || !isFunction(obj[forEachName]);\n };\n}\n\n// In the interest of compact minification, we write\n// each string in the fingerprints only once.\nvar forEachName = 'forEach',\n hasName = 'has',\n commonInit = ['clear', 'delete'],\n mapTail = ['get', hasName, 'set'];\n\n// `Map`, `WeakMap` and `Set` each have slightly different\n// combinations of the above sublists.\nexport var mapMethods = commonInit.concat(forEachName, mapTail),\n weakMapMethods = commonInit.concat(mapTail),\n setMethods = ['add'].concat(commonInit, forEachName, hasName);\n","import tagTester from './_tagTester.js';\nimport { isIE11 } from './_stringTagBug.js';\nimport { ie11fingerprint, mapMethods } from './_methodFingerprint.js';\n\nexport default isIE11 ? ie11fingerprint(mapMethods) : tagTester('Map');\n","import tagTester from './_tagTester.js';\nimport { isIE11 } from './_stringTagBug.js';\nimport { ie11fingerprint, weakMapMethods } from './_methodFingerprint.js';\n\nexport default isIE11 ? ie11fingerprint(weakMapMethods) : tagTester('WeakMap');\n","import tagTester from './_tagTester.js';\nimport { isIE11 } from './_stringTagBug.js';\nimport { ie11fingerprint, setMethods } from './_methodFingerprint.js';\n\nexport default isIE11 ? ie11fingerprint(setMethods) : tagTester('Set');\n","import tagTester from './_tagTester.js';\n\nexport default tagTester('WeakSet');\n","import keys from './keys.js';\n\n// Retrieve the values of an object's properties.\nexport default function values(obj) {\n var _keys = keys(obj);\n var length = _keys.length;\n var values = Array(length);\n for (var i = 0; i < length; i++) {\n values[i] = obj[_keys[i]];\n }\n return values;\n}\n","import keys from './keys.js';\n\n// Convert an object into a list of `[key, value]` pairs.\n// The opposite of `_.object` with one argument.\nexport default function pairs(obj) {\n var _keys = keys(obj);\n var length = _keys.length;\n var pairs = Array(length);\n for (var i = 0; i < length; i++) {\n pairs[i] = [_keys[i], obj[_keys[i]]];\n }\n return pairs;\n}\n","import keys from './keys.js';\n\n// Invert the keys and values of an object. The values must be serializable.\nexport default function invert(obj) {\n var result = {};\n var _keys = keys(obj);\n for (var i = 0, length = _keys.length; i < length; i++) {\n result[obj[_keys[i]]] = _keys[i];\n }\n return result;\n}\n","import isFunction from './isFunction.js';\n\n// Return a sorted list of the function names available on the object.\nexport default function functions(obj) {\n var names = [];\n for (var key in obj) {\n if (isFunction(obj[key])) names.push(key);\n }\n return names.sort();\n}\n","// An internal function for creating assigner functions.\nexport default function createAssigner(keysFunc, defaults) {\n return function(obj) {\n var length = arguments.length;\n if (defaults) obj = Object(obj);\n if (length < 2 || obj == null) return obj;\n for (var index = 1; index < length; index++) {\n var source = arguments[index],\n keys = keysFunc(source),\n l = keys.length;\n for (var i = 0; i < l; i++) {\n var key = keys[i];\n if (!defaults || obj[key] === void 0) obj[key] = source[key];\n }\n }\n return obj;\n };\n}\n","import createAssigner from './_createAssigner.js';\nimport allKeys from './allKeys.js';\n\n// Extend a given object with all the properties in passed-in object(s).\nexport default createAssigner(allKeys);\n","import createAssigner from './_createAssigner.js';\nimport keys from './keys.js';\n\n// Assigns a given object with all the own properties in the passed-in\n// object(s).\n// (https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/assign)\nexport default createAssigner(keys);\n","import createAssigner from './_createAssigner.js';\nimport allKeys from './allKeys.js';\n\n// Fill in a given object with default properties.\nexport default createAssigner(allKeys, true);\n","import isObject from './isObject.js';\nimport { nativeCreate } from './_setup.js';\n\n// Create a naked function reference for surrogate-prototype-swapping.\nfunction ctor() {\n return function(){};\n}\n\n// An internal function for creating a new object that inherits from another.\nexport default function baseCreate(prototype) {\n if (!isObject(prototype)) return {};\n if (nativeCreate) return nativeCreate(prototype);\n var Ctor = ctor();\n Ctor.prototype = prototype;\n var result = new Ctor;\n Ctor.prototype = null;\n return result;\n}\n","import baseCreate from './_baseCreate.js';\nimport extendOwn from './extendOwn.js';\n\n// Creates an object that inherits from the given prototype object.\n// If additional properties are provided then they will be added to the\n// created object.\nexport default function create(prototype, props) {\n var result = baseCreate(prototype);\n if (props) extendOwn(result, props);\n return result;\n}\n","import isObject from './isObject.js';\nimport isArray from './isArray.js';\nimport extend from './extend.js';\n\n// Create a (shallow-cloned) duplicate of an object.\nexport default function clone(obj) {\n if (!isObject(obj)) return obj;\n return isArray(obj) ? obj.slice() : extend({}, obj);\n}\n","// Invokes `interceptor` with the `obj` and then returns `obj`.\n// The primary purpose of this method is to \"tap into\" a method chain, in\n// order to perform operations on intermediate results within the chain.\nexport default function tap(obj, interceptor) {\n interceptor(obj);\n return obj;\n}\n","import _ from './underscore.js';\nimport isArray from './isArray.js';\n\n// Normalize a (deep) property `path` to array.\n// Like `_.iteratee`, this function can be customized.\nexport default function toPath(path) {\n return isArray(path) ? path : [path];\n}\n_.toPath = toPath;\n","import _ from './underscore.js';\nimport './toPath.js';\n\n// Internal wrapper for `_.toPath` to enable minification.\n// Similar to `cb` for `_.iteratee`.\nexport default function toPath(path) {\n return _.toPath(path);\n}\n","// Internal function to obtain a nested property in `obj` along `path`.\nexport default function deepGet(obj, path) {\n var length = path.length;\n for (var i = 0; i < length; i++) {\n if (obj == null) return void 0;\n obj = obj[path[i]];\n }\n return length ? obj : void 0;\n}\n","import toPath from './_toPath.js';\nimport deepGet from './_deepGet.js';\nimport isUndefined from './isUndefined.js';\n\n// Get the value of the (deep) property on `path` from `object`.\n// If any property in `path` does not exist or if the value is\n// `undefined`, return `defaultValue` instead.\n// The `path` is normalized through `_.toPath`.\nexport default function get(object, path, defaultValue) {\n var value = deepGet(object, toPath(path));\n return isUndefined(value) ? defaultValue : value;\n}\n","import _has from './_has.js';\nimport toPath from './_toPath.js';\n\n// Shortcut function for checking if an object has a given property directly on\n// itself (in other words, not on a prototype). Unlike the internal `has`\n// function, this public version can also traverse nested properties.\nexport default function has(obj, path) {\n path = toPath(path);\n var length = path.length;\n for (var i = 0; i < length; i++) {\n var key = path[i];\n if (!_has(obj, key)) return false;\n obj = obj[key];\n }\n return !!length;\n}\n","// Keep the identity function around for default iteratees.\nexport default function identity(value) {\n return value;\n}\n","import extendOwn from './extendOwn.js';\nimport isMatch from './isMatch.js';\n\n// Returns a predicate for checking whether an object has a given set of\n// `key:value` pairs.\nexport default function matcher(attrs) {\n attrs = extendOwn({}, attrs);\n return function(obj) {\n return isMatch(obj, attrs);\n };\n}\n","import deepGet from './_deepGet.js';\nimport toPath from './_toPath.js';\n\n// Creates a function that, when passed an object, will traverse that object’s\n// properties down the given `path`, specified as an array of keys or indices.\nexport default function property(path) {\n path = toPath(path);\n return function(obj) {\n return deepGet(obj, path);\n };\n}\n","// Internal function that returns an efficient (for current engines) version\n// of the passed-in callback, to be repeatedly applied in other Underscore\n// functions.\nexport default function optimizeCb(func, context, argCount) {\n if (context === void 0) return func;\n switch (argCount == null ? 3 : argCount) {\n case 1: return function(value) {\n return func.call(context, value);\n };\n // The 2-argument case is omitted because we’re not using it.\n case 3: return function(value, index, collection) {\n return func.call(context, value, index, collection);\n };\n case 4: return function(accumulator, value, index, collection) {\n return func.call(context, accumulator, value, index, collection);\n };\n }\n return function() {\n return func.apply(context, arguments);\n };\n}\n","import identity from './identity.js';\nimport isFunction from './isFunction.js';\nimport isObject from './isObject.js';\nimport isArray from './isArray.js';\nimport matcher from './matcher.js';\nimport property from './property.js';\nimport optimizeCb from './_optimizeCb.js';\n\n// An internal function to generate callbacks that can be applied to each\n// element in a collection, returning the desired result — either `_.identity`,\n// an arbitrary callback, a property matcher, or a property accessor.\nexport default function baseIteratee(value, context, argCount) {\n if (value == null) return identity;\n if (isFunction(value)) return optimizeCb(value, context, argCount);\n if (isObject(value) && !isArray(value)) return matcher(value);\n return property(value);\n}\n","import _ from './underscore.js';\nimport baseIteratee from './_baseIteratee.js';\n\n// External wrapper for our callback generator. Users may customize\n// `_.iteratee` if they want additional predicate/iteratee shorthand styles.\n// This abstraction hides the internal-only `argCount` argument.\nexport default function iteratee(value, context) {\n return baseIteratee(value, context, Infinity);\n}\n_.iteratee = iteratee;\n","import _ from './underscore.js';\nimport baseIteratee from './_baseIteratee.js';\nimport iteratee from './iteratee.js';\n\n// The function we call internally to generate a callback. It invokes\n// `_.iteratee` if overridden, otherwise `baseIteratee`.\nexport default function cb(value, context, argCount) {\n if (_.iteratee !== iteratee) return _.iteratee(value, context);\n return baseIteratee(value, context, argCount);\n}\n","import cb from './_cb.js';\nimport keys from './keys.js';\n\n// Returns the results of applying the `iteratee` to each element of `obj`.\n// In contrast to `_.map` it returns an object.\nexport default function mapObject(obj, iteratee, context) {\n iteratee = cb(iteratee, context);\n var _keys = keys(obj),\n length = _keys.length,\n results = {};\n for (var index = 0; index < length; index++) {\n var currentKey = _keys[index];\n results[currentKey] = iteratee(obj[currentKey], currentKey, obj);\n }\n return results;\n}\n","// Predicate-generating function. Often useful outside of Underscore.\nexport default function noop(){}\n","import noop from './noop.js';\nimport get from './get.js';\n\n// Generates a function for a given object that returns a given property.\nexport default function propertyOf(obj) {\n if (obj == null) return noop;\n return function(path) {\n return get(obj, path);\n };\n}\n","import optimizeCb from './_optimizeCb.js';\n\n// Run a function **n** times.\nexport default function times(n, iteratee, context) {\n var accum = Array(Math.max(0, n));\n iteratee = optimizeCb(iteratee, context, 1);\n for (var i = 0; i < n; i++) accum[i] = iteratee(i);\n return accum;\n}\n","// Return a random integer between `min` and `max` (inclusive).\nexport default function random(min, max) {\n if (max == null) {\n max = min;\n min = 0;\n }\n return min + Math.floor(Math.random() * (max - min + 1));\n}\n","// A (possibly faster) way to get the current timestamp as an integer.\nexport default Date.now || function() {\n return new Date().getTime();\n};\n","import keys from './keys.js';\n\n// Internal helper to generate functions for escaping and unescaping strings\n// to/from HTML interpolation.\nexport default function createEscaper(map) {\n var escaper = function(match) {\n return map[match];\n };\n // Regexes for identifying a key that needs to be escaped.\n var source = '(?:' + keys(map).join('|') + ')';\n var testRegexp = RegExp(source);\n var replaceRegexp = RegExp(source, 'g');\n return function(string) {\n string = string == null ? '' : '' + string;\n return testRegexp.test(string) ? string.replace(replaceRegexp, escaper) : string;\n };\n}\n","// Internal list of HTML entities for escaping.\nexport default {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n \"'\": ''',\n '`': '`'\n};\n","import createEscaper from './_createEscaper.js';\nimport escapeMap from './_escapeMap.js';\n\n// Function for escaping strings to HTML interpolation.\nexport default createEscaper(escapeMap);\n","import createEscaper from './_createEscaper.js';\nimport unescapeMap from './_unescapeMap.js';\n\n// Function for unescaping strings from HTML interpolation.\nexport default createEscaper(unescapeMap);\n","import invert from './invert.js';\nimport escapeMap from './_escapeMap.js';\n\n// Internal list of HTML entities for unescaping.\nexport default invert(escapeMap);\n","import _ from './underscore.js';\n\n// By default, Underscore uses ERB-style template delimiters. Change the\n// following template settings to use alternative delimiters.\nexport default _.templateSettings = {\n evaluate: /<%([\\s\\S]+?)%>/g,\n interpolate: /<%=([\\s\\S]+?)%>/g,\n escape: /<%-([\\s\\S]+?)%>/g\n};\n","import defaults from './defaults.js';\nimport _ from './underscore.js';\nimport './templateSettings.js';\n\n// When customizing `_.templateSettings`, if you don't want to define an\n// interpolation, evaluation or escaping regex, we need one that is\n// guaranteed not to match.\nvar noMatch = /(.)^/;\n\n// Certain characters need to be escaped so that they can be put into a\n// string literal.\nvar escapes = {\n \"'\": \"'\",\n '\\\\': '\\\\',\n '\\r': 'r',\n '\\n': 'n',\n '\\u2028': 'u2028',\n '\\u2029': 'u2029'\n};\n\nvar escapeRegExp = /\\\\|'|\\r|\\n|\\u2028|\\u2029/g;\n\nfunction escapeChar(match) {\n return '\\\\' + escapes[match];\n}\n\n// In order to prevent third-party code injection through\n// `_.templateSettings.variable`, we test it against the following regular\n// expression. It is intentionally a bit more liberal than just matching valid\n// identifiers, but still prevents possible loopholes through defaults or\n// destructuring assignment.\nvar bareIdentifier = /^\\s*(\\w|\\$)+\\s*$/;\n\n// JavaScript micro-templating, similar to John Resig's implementation.\n// Underscore templating handles arbitrary delimiters, preserves whitespace,\n// and correctly escapes quotes within interpolated code.\n// NB: `oldSettings` only exists for backwards compatibility.\nexport default function template(text, settings, oldSettings) {\n if (!settings && oldSettings) settings = oldSettings;\n settings = defaults({}, settings, _.templateSettings);\n\n // Combine delimiters into one regular expression via alternation.\n var matcher = RegExp([\n (settings.escape || noMatch).source,\n (settings.interpolate || noMatch).source,\n (settings.evaluate || noMatch).source\n ].join('|') + '|$', 'g');\n\n // Compile the template source, escaping string literals appropriately.\n var index = 0;\n var source = \"__p+='\";\n text.replace(matcher, function(match, escape, interpolate, evaluate, offset) {\n source += text.slice(index, offset).replace(escapeRegExp, escapeChar);\n index = offset + match.length;\n\n if (escape) {\n source += \"'+\\n((__t=(\" + escape + \"))==null?'':_.escape(__t))+\\n'\";\n } else if (interpolate) {\n source += \"'+\\n((__t=(\" + interpolate + \"))==null?'':__t)+\\n'\";\n } else if (evaluate) {\n source += \"';\\n\" + evaluate + \"\\n__p+='\";\n }\n\n // Adobe VMs need the match returned to produce the correct offset.\n return match;\n });\n source += \"';\\n\";\n\n var argument = settings.variable;\n if (argument) {\n // Insure against third-party code injection. (CVE-2021-23358)\n if (!bareIdentifier.test(argument)) throw new Error(\n 'variable is not a bare identifier: ' + argument\n );\n } else {\n // If a variable is not specified, place data values in local scope.\n source = 'with(obj||{}){\\n' + source + '}\\n';\n argument = 'obj';\n }\n\n source = \"var __t,__p='',__j=Array.prototype.join,\" +\n \"print=function(){__p+=__j.call(arguments,'');};\\n\" +\n source + 'return __p;\\n';\n\n var render;\n try {\n render = new Function(argument, '_', source);\n } catch (e) {\n e.source = source;\n throw e;\n }\n\n var template = function(data) {\n return render.call(this, data, _);\n };\n\n // Provide the compiled source as a convenience for precompilation.\n template.source = 'function(' + argument + '){\\n' + source + '}';\n\n return template;\n}\n","import isFunction from './isFunction.js';\nimport toPath from './_toPath.js';\n\n// Traverses the children of `obj` along `path`. If a child is a function, it\n// is invoked with its parent as context. Returns the value of the final\n// child, or `fallback` if any child is undefined.\nexport default function result(obj, path, fallback) {\n path = toPath(path);\n var length = path.length;\n if (!length) {\n return isFunction(fallback) ? fallback.call(obj) : fallback;\n }\n for (var i = 0; i < length; i++) {\n var prop = obj == null ? void 0 : obj[path[i]];\n if (prop === void 0) {\n prop = fallback;\n i = length; // Ensure we don't continue iterating.\n }\n obj = isFunction(prop) ? prop.call(obj) : prop;\n }\n return obj;\n}\n","// Generate a unique integer id (unique within the entire client session).\n// Useful for temporary DOM ids.\nvar idCounter = 0;\nexport default function uniqueId(prefix) {\n var id = ++idCounter + '';\n return prefix ? prefix + id : id;\n}\n","import _ from './underscore.js';\n\n// Start chaining a wrapped Underscore object.\nexport default function chain(obj) {\n var instance = _(obj);\n instance._chain = true;\n return instance;\n}\n","import baseCreate from './_baseCreate.js';\nimport isObject from './isObject.js';\n\n// Internal function to execute `sourceFunc` bound to `context` with optional\n// `args`. Determines whether to execute a function as a constructor or as a\n// normal function.\nexport default function executeBound(sourceFunc, boundFunc, context, callingContext, args) {\n if (!(callingContext instanceof boundFunc)) return sourceFunc.apply(context, args);\n var self = baseCreate(sourceFunc.prototype);\n var result = sourceFunc.apply(self, args);\n if (isObject(result)) return result;\n return self;\n}\n","import restArguments from './restArguments.js';\nimport executeBound from './_executeBound.js';\nimport _ from './underscore.js';\n\n// Partially apply a function by creating a version that has had some of its\n// arguments pre-filled, without changing its dynamic `this` context. `_` acts\n// as a placeholder by default, allowing any combination of arguments to be\n// pre-filled. Set `_.partial.placeholder` for a custom placeholder argument.\nvar partial = restArguments(function(func, boundArgs) {\n var placeholder = partial.placeholder;\n var bound = function() {\n var position = 0, length = boundArgs.length;\n var args = Array(length);\n for (var i = 0; i < length; i++) {\n args[i] = boundArgs[i] === placeholder ? arguments[position++] : boundArgs[i];\n }\n while (position < arguments.length) args.push(arguments[position++]);\n return executeBound(func, bound, this, this, args);\n };\n return bound;\n});\n\npartial.placeholder = _;\nexport default partial;\n","import restArguments from './restArguments.js';\nimport isFunction from './isFunction.js';\nimport executeBound from './_executeBound.js';\n\n// Create a function bound to a given object (assigning `this`, and arguments,\n// optionally).\nexport default restArguments(function(func, context, args) {\n if (!isFunction(func)) throw new TypeError('Bind must be called on a function');\n var bound = restArguments(function(callArgs) {\n return executeBound(func, bound, context, this, args.concat(callArgs));\n });\n return bound;\n});\n","import createSizePropertyCheck from './_createSizePropertyCheck.js';\nimport getLength from './_getLength.js';\n\n// Internal helper for collection methods to determine whether a collection\n// should be iterated as an array or as an object.\n// Related: https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength\n// Avoids a very nasty iOS 8 JIT bug on ARM-64. #2094\nexport default createSizePropertyCheck(getLength);\n","import getLength from './_getLength.js';\nimport isArrayLike from './_isArrayLike.js';\nimport isArray from './isArray.js';\nimport isArguments from './isArguments.js';\n\n// Internal implementation of a recursive `flatten` function.\nexport default function flatten(input, depth, strict, output) {\n output = output || [];\n if (!depth && depth !== 0) {\n depth = Infinity;\n } else if (depth <= 0) {\n return output.concat(input);\n }\n var idx = output.length;\n for (var i = 0, length = getLength(input); i < length; i++) {\n var value = input[i];\n if (isArrayLike(value) && (isArray(value) || isArguments(value))) {\n // Flatten current level of array or arguments object.\n if (depth > 1) {\n flatten(value, depth - 1, strict, output);\n idx = output.length;\n } else {\n var j = 0, len = value.length;\n while (j < len) output[idx++] = value[j++];\n }\n } else if (!strict) {\n output[idx++] = value;\n }\n }\n return output;\n}\n","import restArguments from './restArguments.js';\nimport flatten from './_flatten.js';\nimport bind from './bind.js';\n\n// Bind a number of an object's methods to that object. Remaining arguments\n// are the method names to be bound. Useful for ensuring that all callbacks\n// defined on an object belong to it.\nexport default restArguments(function(obj, keys) {\n keys = flatten(keys, false, false);\n var index = keys.length;\n if (index < 1) throw new Error('bindAll must be passed function names');\n while (index--) {\n var key = keys[index];\n obj[key] = bind(obj[key], obj);\n }\n return obj;\n});\n","import has from './_has.js';\n\n// Memoize an expensive function by storing its results.\nexport default function memoize(func, hasher) {\n var memoize = function(key) {\n var cache = memoize.cache;\n var address = '' + (hasher ? hasher.apply(this, arguments) : key);\n if (!has(cache, address)) cache[address] = func.apply(this, arguments);\n return cache[address];\n };\n memoize.cache = {};\n return memoize;\n}\n","import restArguments from './restArguments.js';\n\n// Delays a function for the given number of milliseconds, and then calls\n// it with the arguments supplied.\nexport default restArguments(function(func, wait, args) {\n return setTimeout(function() {\n return func.apply(null, args);\n }, wait);\n});\n","import partial from './partial.js';\nimport delay from './delay.js';\nimport _ from './underscore.js';\n\n// Defers a function, scheduling it to run after the current call stack has\n// cleared.\nexport default partial(delay, _, 1);\n","import now from './now.js';\n\n// Returns a function, that, when invoked, will only be triggered at most once\n// during a given window of time. Normally, the throttled function will run\n// as much as it can, without ever going more than once per `wait` duration;\n// but if you'd like to disable the execution on the leading edge, pass\n// `{leading: false}`. To disable execution on the trailing edge, ditto.\nexport default function throttle(func, wait, options) {\n var timeout, context, args, result;\n var previous = 0;\n if (!options) options = {};\n\n var later = function() {\n previous = options.leading === false ? 0 : now();\n timeout = null;\n result = func.apply(context, args);\n if (!timeout) context = args = null;\n };\n\n var throttled = function() {\n var _now = now();\n if (!previous && options.leading === false) previous = _now;\n var remaining = wait - (_now - previous);\n context = this;\n args = arguments;\n if (remaining <= 0 || remaining > wait) {\n if (timeout) {\n clearTimeout(timeout);\n timeout = null;\n }\n previous = _now;\n result = func.apply(context, args);\n if (!timeout) context = args = null;\n } else if (!timeout && options.trailing !== false) {\n timeout = setTimeout(later, remaining);\n }\n return result;\n };\n\n throttled.cancel = function() {\n clearTimeout(timeout);\n previous = 0;\n timeout = context = args = null;\n };\n\n return throttled;\n}\n","import restArguments from './restArguments.js';\nimport now from './now.js';\n\n// When a sequence of calls of the returned function ends, the argument\n// function is triggered. The end of a sequence is defined by the `wait`\n// parameter. If `immediate` is passed, the argument function will be\n// triggered at the beginning of the sequence instead of at the end.\nexport default function debounce(func, wait, immediate) {\n var timeout, previous, args, result, context;\n\n var later = function() {\n var passed = now() - previous;\n if (wait > passed) {\n timeout = setTimeout(later, wait - passed);\n } else {\n timeout = null;\n if (!immediate) result = func.apply(context, args);\n // This check is needed because `func` can recursively invoke `debounced`.\n if (!timeout) args = context = null;\n }\n };\n\n var debounced = restArguments(function(_args) {\n context = this;\n args = _args;\n previous = now();\n if (!timeout) {\n timeout = setTimeout(later, wait);\n if (immediate) result = func.apply(context, args);\n }\n return result;\n });\n\n debounced.cancel = function() {\n clearTimeout(timeout);\n timeout = args = context = null;\n };\n\n return debounced;\n}\n","import partial from './partial.js';\n\n// Returns the first function passed as an argument to the second,\n// allowing you to adjust arguments, run code before and after, and\n// conditionally execute the original function.\nexport default function wrap(func, wrapper) {\n return partial(wrapper, func);\n}\n","// Returns a negated version of the passed-in predicate.\nexport default function negate(predicate) {\n return function() {\n return !predicate.apply(this, arguments);\n };\n}\n","// Returns a function that is the composition of a list of functions, each\n// consuming the return value of the function that follows.\nexport default function compose() {\n var args = arguments;\n var start = args.length - 1;\n return function() {\n var i = start;\n var result = args[start].apply(this, arguments);\n while (i--) result = args[i].call(this, result);\n return result;\n };\n}\n","// Returns a function that will only be executed on and after the Nth call.\nexport default function after(times, func) {\n return function() {\n if (--times < 1) {\n return func.apply(this, arguments);\n }\n };\n}\n","// Returns a function that will only be executed up to (but not including) the\n// Nth call.\nexport default function before(times, func) {\n var memo;\n return function() {\n if (--times > 0) {\n memo = func.apply(this, arguments);\n }\n if (times <= 1) func = null;\n return memo;\n };\n}\n","import partial from './partial.js';\nimport before from './before.js';\n\n// Returns a function that will be executed at most one time, no matter how\n// often you call it. Useful for lazy initialization.\nexport default partial(before, 2);\n","import cb from './_cb.js';\nimport keys from './keys.js';\n\n// Returns the first key on an object that passes a truth test.\nexport default function findKey(obj, predicate, context) {\n predicate = cb(predicate, context);\n var _keys = keys(obj), key;\n for (var i = 0, length = _keys.length; i < length; i++) {\n key = _keys[i];\n if (predicate(obj[key], key, obj)) return key;\n }\n}\n","import cb from './_cb.js';\nimport getLength from './_getLength.js';\n\n// Internal function to generate `_.findIndex` and `_.findLastIndex`.\nexport default function createPredicateIndexFinder(dir) {\n return function(array, predicate, context) {\n predicate = cb(predicate, context);\n var length = getLength(array);\n var index = dir > 0 ? 0 : length - 1;\n for (; index >= 0 && index < length; index += dir) {\n if (predicate(array[index], index, array)) return index;\n }\n return -1;\n };\n}\n","import createPredicateIndexFinder from './_createPredicateIndexFinder.js';\n\n// Returns the first index on an array-like that passes a truth test.\nexport default createPredicateIndexFinder(1);\n","import createPredicateIndexFinder from './_createPredicateIndexFinder.js';\n\n// Returns the last index on an array-like that passes a truth test.\nexport default createPredicateIndexFinder(-1);\n","import cb from './_cb.js';\nimport getLength from './_getLength.js';\n\n// Use a comparator function to figure out the smallest index at which\n// an object should be inserted so as to maintain order. Uses binary search.\nexport default function sortedIndex(array, obj, iteratee, context) {\n iteratee = cb(iteratee, context, 1);\n var value = iteratee(obj);\n var low = 0, high = getLength(array);\n while (low < high) {\n var mid = Math.floor((low + high) / 2);\n if (iteratee(array[mid]) < value) low = mid + 1; else high = mid;\n }\n return low;\n}\n","import getLength from './_getLength.js';\nimport { slice } from './_setup.js';\nimport isNaN from './isNaN.js';\n\n// Internal function to generate the `_.indexOf` and `_.lastIndexOf` functions.\nexport default function createIndexFinder(dir, predicateFind, sortedIndex) {\n return function(array, item, idx) {\n var i = 0, length = getLength(array);\n if (typeof idx == 'number') {\n if (dir > 0) {\n i = idx >= 0 ? idx : Math.max(idx + length, i);\n } else {\n length = idx >= 0 ? Math.min(idx + 1, length) : idx + length + 1;\n }\n } else if (sortedIndex && idx && length) {\n idx = sortedIndex(array, item);\n return array[idx] === item ? idx : -1;\n }\n if (item !== item) {\n idx = predicateFind(slice.call(array, i, length), isNaN);\n return idx >= 0 ? idx + i : -1;\n }\n for (idx = dir > 0 ? i : length - 1; idx >= 0 && idx < length; idx += dir) {\n if (array[idx] === item) return idx;\n }\n return -1;\n };\n}\n","import sortedIndex from './sortedIndex.js';\nimport findIndex from './findIndex.js';\nimport createIndexFinder from './_createIndexFinder.js';\n\n// Return the position of the first occurrence of an item in an array,\n// or -1 if the item is not included in the array.\n// If the array is large and already in sort order, pass `true`\n// for **isSorted** to use binary search.\nexport default createIndexFinder(1, findIndex, sortedIndex);\n","import findLastIndex from './findLastIndex.js';\nimport createIndexFinder from './_createIndexFinder.js';\n\n// Return the position of the last occurrence of an item in an array,\n// or -1 if the item is not included in the array.\nexport default createIndexFinder(-1, findLastIndex);\n","import isArrayLike from './_isArrayLike.js';\nimport findIndex from './findIndex.js';\nimport findKey from './findKey.js';\n\n// Return the first value which passes a truth test.\nexport default function find(obj, predicate, context) {\n var keyFinder = isArrayLike(obj) ? findIndex : findKey;\n var key = keyFinder(obj, predicate, context);\n if (key !== void 0 && key !== -1) return obj[key];\n}\n","import find from './find.js';\nimport matcher from './matcher.js';\n\n// Convenience version of a common use case of `_.find`: getting the first\n// object containing specific `key:value` pairs.\nexport default function findWhere(obj, attrs) {\n return find(obj, matcher(attrs));\n}\n","import optimizeCb from './_optimizeCb.js';\nimport isArrayLike from './_isArrayLike.js';\nimport keys from './keys.js';\n\n// The cornerstone for collection functions, an `each`\n// implementation, aka `forEach`.\n// Handles raw objects in addition to array-likes. Treats all\n// sparse array-likes as if they were dense.\nexport default function each(obj, iteratee, context) {\n iteratee = optimizeCb(iteratee, context);\n var i, length;\n if (isArrayLike(obj)) {\n for (i = 0, length = obj.length; i < length; i++) {\n iteratee(obj[i], i, obj);\n }\n } else {\n var _keys = keys(obj);\n for (i = 0, length = _keys.length; i < length; i++) {\n iteratee(obj[_keys[i]], _keys[i], obj);\n }\n }\n return obj;\n}\n","import cb from './_cb.js';\nimport isArrayLike from './_isArrayLike.js';\nimport keys from './keys.js';\n\n// Return the results of applying the iteratee to each element.\nexport default function map(obj, iteratee, context) {\n iteratee = cb(iteratee, context);\n var _keys = !isArrayLike(obj) && keys(obj),\n length = (_keys || obj).length,\n results = Array(length);\n for (var index = 0; index < length; index++) {\n var currentKey = _keys ? _keys[index] : index;\n results[index] = iteratee(obj[currentKey], currentKey, obj);\n }\n return results;\n}\n","import isArrayLike from './_isArrayLike.js';\nimport keys from './keys.js';\nimport optimizeCb from './_optimizeCb.js';\n\n// Internal helper to create a reducing function, iterating left or right.\nexport default function createReduce(dir) {\n // Wrap code that reassigns argument variables in a separate function than\n // the one that accesses `arguments.length` to avoid a perf hit. (#1991)\n var reducer = function(obj, iteratee, memo, initial) {\n var _keys = !isArrayLike(obj) && keys(obj),\n length = (_keys || obj).length,\n index = dir > 0 ? 0 : length - 1;\n if (!initial) {\n memo = obj[_keys ? _keys[index] : index];\n index += dir;\n }\n for (; index >= 0 && index < length; index += dir) {\n var currentKey = _keys ? _keys[index] : index;\n memo = iteratee(memo, obj[currentKey], currentKey, obj);\n }\n return memo;\n };\n\n return function(obj, iteratee, memo, context) {\n var initial = arguments.length >= 3;\n return reducer(obj, optimizeCb(iteratee, context, 4), memo, initial);\n };\n}\n","import createReduce from './_createReduce.js';\n\n// **Reduce** builds up a single result from a list of values, aka `inject`,\n// or `foldl`.\nexport default createReduce(1);\n","import createReduce from './_createReduce.js';\n\n// The right-associative version of reduce, also known as `foldr`.\nexport default createReduce(-1);\n","import cb from './_cb.js';\nimport each from './each.js';\n\n// Return all the elements that pass a truth test.\nexport default function filter(obj, predicate, context) {\n var results = [];\n predicate = cb(predicate, context);\n each(obj, function(value, index, list) {\n if (predicate(value, index, list)) results.push(value);\n });\n return results;\n}\n","import filter from './filter.js';\nimport negate from './negate.js';\nimport cb from './_cb.js';\n\n// Return all the elements for which a truth test fails.\nexport default function reject(obj, predicate, context) {\n return filter(obj, negate(cb(predicate)), context);\n}\n","import cb from './_cb.js';\nimport isArrayLike from './_isArrayLike.js';\nimport keys from './keys.js';\n\n// Determine whether all of the elements pass a truth test.\nexport default function every(obj, predicate, context) {\n predicate = cb(predicate, context);\n var _keys = !isArrayLike(obj) && keys(obj),\n length = (_keys || obj).length;\n for (var index = 0; index < length; index++) {\n var currentKey = _keys ? _keys[index] : index;\n if (!predicate(obj[currentKey], currentKey, obj)) return false;\n }\n return true;\n}\n","import cb from './_cb.js';\nimport isArrayLike from './_isArrayLike.js';\nimport keys from './keys.js';\n\n// Determine if at least one element in the object passes a truth test.\nexport default function some(obj, predicate, context) {\n predicate = cb(predicate, context);\n var _keys = !isArrayLike(obj) && keys(obj),\n length = (_keys || obj).length;\n for (var index = 0; index < length; index++) {\n var currentKey = _keys ? _keys[index] : index;\n if (predicate(obj[currentKey], currentKey, obj)) return true;\n }\n return false;\n}\n","import isArrayLike from './_isArrayLike.js';\nimport values from './values.js';\nimport indexOf from './indexOf.js';\n\n// Determine if the array or object contains a given item (using `===`).\nexport default function contains(obj, item, fromIndex, guard) {\n if (!isArrayLike(obj)) obj = values(obj);\n if (typeof fromIndex != 'number' || guard) fromIndex = 0;\n return indexOf(obj, item, fromIndex) >= 0;\n}\n","import restArguments from './restArguments.js';\nimport isFunction from './isFunction.js';\nimport map from './map.js';\nimport deepGet from './_deepGet.js';\nimport toPath from './_toPath.js';\n\n// Invoke a method (with arguments) on every item in a collection.\nexport default restArguments(function(obj, path, args) {\n var contextPath, func;\n if (isFunction(path)) {\n func = path;\n } else {\n path = toPath(path);\n contextPath = path.slice(0, -1);\n path = path[path.length - 1];\n }\n return map(obj, function(context) {\n var method = func;\n if (!method) {\n if (contextPath && contextPath.length) {\n context = deepGet(context, contextPath);\n }\n if (context == null) return void 0;\n method = context[path];\n }\n return method == null ? method : method.apply(context, args);\n });\n});\n","import map from './map.js';\nimport property from './property.js';\n\n// Convenience version of a common use case of `_.map`: fetching a property.\nexport default function pluck(obj, key) {\n return map(obj, property(key));\n}\n","import filter from './filter.js';\nimport matcher from './matcher.js';\n\n// Convenience version of a common use case of `_.filter`: selecting only\n// objects containing specific `key:value` pairs.\nexport default function where(obj, attrs) {\n return filter(obj, matcher(attrs));\n}\n","import isArrayLike from './_isArrayLike.js';\nimport values from './values.js';\nimport cb from './_cb.js';\nimport each from './each.js';\n\n// Return the maximum element (or element-based computation).\nexport default function max(obj, iteratee, context) {\n var result = -Infinity, lastComputed = -Infinity,\n value, computed;\n if (iteratee == null || (typeof iteratee == 'number' && typeof obj[0] != 'object' && obj != null)) {\n obj = isArrayLike(obj) ? obj : values(obj);\n for (var i = 0, length = obj.length; i < length; i++) {\n value = obj[i];\n if (value != null && value > result) {\n result = value;\n }\n }\n } else {\n iteratee = cb(iteratee, context);\n each(obj, function(v, index, list) {\n computed = iteratee(v, index, list);\n if (computed > lastComputed || (computed === -Infinity && result === -Infinity)) {\n result = v;\n lastComputed = computed;\n }\n });\n }\n return result;\n}\n","import isArrayLike from './_isArrayLike.js';\nimport values from './values.js';\nimport cb from './_cb.js';\nimport each from './each.js';\n\n// Return the minimum element (or element-based computation).\nexport default function min(obj, iteratee, context) {\n var result = Infinity, lastComputed = Infinity,\n value, computed;\n if (iteratee == null || (typeof iteratee == 'number' && typeof obj[0] != 'object' && obj != null)) {\n obj = isArrayLike(obj) ? obj : values(obj);\n for (var i = 0, length = obj.length; i < length; i++) {\n value = obj[i];\n if (value != null && value < result) {\n result = value;\n }\n }\n } else {\n iteratee = cb(iteratee, context);\n each(obj, function(v, index, list) {\n computed = iteratee(v, index, list);\n if (computed < lastComputed || (computed === Infinity && result === Infinity)) {\n result = v;\n lastComputed = computed;\n }\n });\n }\n return result;\n}\n","import isArray from './isArray.js';\nimport { slice } from './_setup.js';\nimport isString from './isString.js';\nimport isArrayLike from './_isArrayLike.js';\nimport map from './map.js';\nimport identity from './identity.js';\nimport values from './values.js';\n\n// Safely create a real, live array from anything iterable.\nvar reStrSymbol = /[^\\ud800-\\udfff]|[\\ud800-\\udbff][\\udc00-\\udfff]|[\\ud800-\\udfff]/g;\nexport default function toArray(obj) {\n if (!obj) return [];\n if (isArray(obj)) return slice.call(obj);\n if (isString(obj)) {\n // Keep surrogate pair characters together.\n return obj.match(reStrSymbol);\n }\n if (isArrayLike(obj)) return map(obj, identity);\n return values(obj);\n}\n","import isArrayLike from './_isArrayLike.js';\nimport values from './values.js';\nimport getLength from './_getLength.js';\nimport random from './random.js';\nimport toArray from './toArray.js';\n\n// Sample **n** random values from a collection using the modern version of the\n// [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher–Yates_shuffle).\n// If **n** is not specified, returns a single random element.\n// The internal `guard` argument allows it to work with `_.map`.\nexport default function sample(obj, n, guard) {\n if (n == null || guard) {\n if (!isArrayLike(obj)) obj = values(obj);\n return obj[random(obj.length - 1)];\n }\n var sample = toArray(obj);\n var length = getLength(sample);\n n = Math.max(Math.min(n, length), 0);\n var last = length - 1;\n for (var index = 0; index < n; index++) {\n var rand = random(index, last);\n var temp = sample[index];\n sample[index] = sample[rand];\n sample[rand] = temp;\n }\n return sample.slice(0, n);\n}\n","import sample from './sample.js';\n\n// Shuffle a collection.\nexport default function shuffle(obj) {\n return sample(obj, Infinity);\n}\n","import cb from './_cb.js';\nimport pluck from './pluck.js';\nimport map from './map.js';\n\n// Sort the object's values by a criterion produced by an iteratee.\nexport default function sortBy(obj, iteratee, context) {\n var index = 0;\n iteratee = cb(iteratee, context);\n return pluck(map(obj, function(value, key, list) {\n return {\n value: value,\n index: index++,\n criteria: iteratee(value, key, list)\n };\n }).sort(function(left, right) {\n var a = left.criteria;\n var b = right.criteria;\n if (a !== b) {\n if (a > b || a === void 0) return 1;\n if (a < b || b === void 0) return -1;\n }\n return left.index - right.index;\n }), 'value');\n}\n","import cb from './_cb.js';\nimport each from './each.js';\n\n// An internal function used for aggregate \"group by\" operations.\nexport default function group(behavior, partition) {\n return function(obj, iteratee, context) {\n var result = partition ? [[], []] : {};\n iteratee = cb(iteratee, context);\n each(obj, function(value, index) {\n var key = iteratee(value, index, obj);\n behavior(result, value, key);\n });\n return result;\n };\n}\n","import group from './_group.js';\nimport has from './_has.js';\n\n// Groups the object's values by a criterion. Pass either a string attribute\n// to group by, or a function that returns the criterion.\nexport default group(function(result, value, key) {\n if (has(result, key)) result[key].push(value); else result[key] = [value];\n});\n","import group from './_group.js';\n\n// Indexes the object's values by a criterion, similar to `_.groupBy`, but for\n// when you know that your index values will be unique.\nexport default group(function(result, value, key) {\n result[key] = value;\n});\n","import group from './_group.js';\nimport has from './_has.js';\n\n// Counts instances of an object that group by a certain criterion. Pass\n// either a string attribute to count by, or a function that returns the\n// criterion.\nexport default group(function(result, value, key) {\n if (has(result, key)) result[key]++; else result[key] = 1;\n});\n","import group from './_group.js';\n\n// Split a collection into two arrays: one whose elements all pass the given\n// truth test, and one whose elements all do not pass the truth test.\nexport default group(function(result, value, pass) {\n result[pass ? 0 : 1].push(value);\n}, true);\n","import isArrayLike from './_isArrayLike.js';\nimport keys from './keys.js';\n\n// Return the number of elements in a collection.\nexport default function size(obj) {\n if (obj == null) return 0;\n return isArrayLike(obj) ? obj.length : keys(obj).length;\n}\n","// Internal `_.pick` helper function to determine whether `key` is an enumerable\n// property name of `obj`.\nexport default function keyInObj(value, key, obj) {\n return key in obj;\n}\n","import restArguments from './restArguments.js';\nimport isFunction from './isFunction.js';\nimport optimizeCb from './_optimizeCb.js';\nimport allKeys from './allKeys.js';\nimport keyInObj from './_keyInObj.js';\nimport flatten from './_flatten.js';\n\n// Return a copy of the object only containing the allowed properties.\nexport default restArguments(function(obj, keys) {\n var result = {}, iteratee = keys[0];\n if (obj == null) return result;\n if (isFunction(iteratee)) {\n if (keys.length > 1) iteratee = optimizeCb(iteratee, keys[1]);\n keys = allKeys(obj);\n } else {\n iteratee = keyInObj;\n keys = flatten(keys, false, false);\n obj = Object(obj);\n }\n for (var i = 0, length = keys.length; i < length; i++) {\n var key = keys[i];\n var value = obj[key];\n if (iteratee(value, key, obj)) result[key] = value;\n }\n return result;\n});\n","import restArguments from './restArguments.js';\nimport isFunction from './isFunction.js';\nimport negate from './negate.js';\nimport map from './map.js';\nimport flatten from './_flatten.js';\nimport contains from './contains.js';\nimport pick from './pick.js';\n\n// Return a copy of the object without the disallowed properties.\nexport default restArguments(function(obj, keys) {\n var iteratee = keys[0], context;\n if (isFunction(iteratee)) {\n iteratee = negate(iteratee);\n if (keys.length > 1) context = keys[1];\n } else {\n keys = map(flatten(keys, false, false), String);\n iteratee = function(value, key) {\n return !contains(keys, key);\n };\n }\n return pick(obj, iteratee, context);\n});\n","import { slice } from './_setup.js';\n\n// Returns everything but the last entry of the array. Especially useful on\n// the arguments object. Passing **n** will return all the values in\n// the array, excluding the last N.\nexport default function initial(array, n, guard) {\n return slice.call(array, 0, Math.max(0, array.length - (n == null || guard ? 1 : n)));\n}\n","import initial from './initial.js';\n\n// Get the first element of an array. Passing **n** will return the first N\n// values in the array. The **guard** check allows it to work with `_.map`.\nexport default function first(array, n, guard) {\n if (array == null || array.length < 1) return n == null || guard ? void 0 : [];\n if (n == null || guard) return array[0];\n return initial(array, array.length - n);\n}\n","import { slice } from './_setup.js';\n\n// Returns everything but the first entry of the `array`. Especially useful on\n// the `arguments` object. Passing an **n** will return the rest N values in the\n// `array`.\nexport default function rest(array, n, guard) {\n return slice.call(array, n == null || guard ? 1 : n);\n}\n","import rest from './rest.js';\n\n// Get the last element of an array. Passing **n** will return the last N\n// values in the array.\nexport default function last(array, n, guard) {\n if (array == null || array.length < 1) return n == null || guard ? void 0 : [];\n if (n == null || guard) return array[array.length - 1];\n return rest(array, Math.max(0, array.length - n));\n}\n","import filter from './filter.js';\n\n// Trim out all falsy values from an array.\nexport default function compact(array) {\n return filter(array, Boolean);\n}\n","import _flatten from './_flatten.js';\n\n// Flatten out an array, either recursively (by default), or up to `depth`.\n// Passing `true` or `false` as `depth` means `1` or `Infinity`, respectively.\nexport default function flatten(array, depth) {\n return _flatten(array, depth, false);\n}\n","import restArguments from './restArguments.js';\nimport flatten from './_flatten.js';\nimport filter from './filter.js';\nimport contains from './contains.js';\n\n// Take the difference between one array and a number of other arrays.\n// Only the elements present in just the first array will remain.\nexport default restArguments(function(array, rest) {\n rest = flatten(rest, true, true);\n return filter(array, function(value){\n return !contains(rest, value);\n });\n});\n","import restArguments from './restArguments.js';\nimport difference from './difference.js';\n\n// Return a version of the array that does not contain the specified value(s).\nexport default restArguments(function(array, otherArrays) {\n return difference(array, otherArrays);\n});\n","import isBoolean from './isBoolean.js';\nimport cb from './_cb.js';\nimport getLength from './_getLength.js';\nimport contains from './contains.js';\n\n// Produce a duplicate-free version of the array. If the array has already\n// been sorted, you have the option of using a faster algorithm.\n// The faster algorithm will not work with an iteratee if the iteratee\n// is not a one-to-one function, so providing an iteratee will disable\n// the faster algorithm.\nexport default function uniq(array, isSorted, iteratee, context) {\n if (!isBoolean(isSorted)) {\n context = iteratee;\n iteratee = isSorted;\n isSorted = false;\n }\n if (iteratee != null) iteratee = cb(iteratee, context);\n var result = [];\n var seen = [];\n for (var i = 0, length = getLength(array); i < length; i++) {\n var value = array[i],\n computed = iteratee ? iteratee(value, i, array) : value;\n if (isSorted && !iteratee) {\n if (!i || seen !== computed) result.push(value);\n seen = computed;\n } else if (iteratee) {\n if (!contains(seen, computed)) {\n seen.push(computed);\n result.push(value);\n }\n } else if (!contains(result, value)) {\n result.push(value);\n }\n }\n return result;\n}\n","import restArguments from './restArguments.js';\nimport uniq from './uniq.js';\nimport flatten from './_flatten.js';\n\n// Produce an array that contains the union: each distinct element from all of\n// the passed-in arrays.\nexport default restArguments(function(arrays) {\n return uniq(flatten(arrays, true, true));\n});\n","import getLength from './_getLength.js';\nimport contains from './contains.js';\n\n// Produce an array that contains every item shared between all the\n// passed-in arrays.\nexport default function intersection(array) {\n var result = [];\n var argsLength = arguments.length;\n for (var i = 0, length = getLength(array); i < length; i++) {\n var item = array[i];\n if (contains(result, item)) continue;\n var j;\n for (j = 1; j < argsLength; j++) {\n if (!contains(arguments[j], item)) break;\n }\n if (j === argsLength) result.push(item);\n }\n return result;\n}\n","import max from './max.js';\nimport getLength from './_getLength.js';\nimport pluck from './pluck.js';\n\n// Complement of zip. Unzip accepts an array of arrays and groups\n// each array's elements on shared indices.\nexport default function unzip(array) {\n var length = (array && max(array, getLength).length) || 0;\n var result = Array(length);\n\n for (var index = 0; index < length; index++) {\n result[index] = pluck(array, index);\n }\n return result;\n}\n","import restArguments from './restArguments.js';\nimport unzip from './unzip.js';\n\n// Zip together multiple lists into a single array -- elements that share\n// an index go together.\nexport default restArguments(unzip);\n","import getLength from './_getLength.js';\n\n// Converts lists into objects. Pass either a single array of `[key, value]`\n// pairs, or two parallel arrays of the same length -- one of keys, and one of\n// the corresponding values. Passing by pairs is the reverse of `_.pairs`.\nexport default function object(list, values) {\n var result = {};\n for (var i = 0, length = getLength(list); i < length; i++) {\n if (values) {\n result[list[i]] = values[i];\n } else {\n result[list[i][0]] = list[i][1];\n }\n }\n return result;\n}\n","// Generate an integer Array containing an arithmetic progression. A port of\n// the native Python `range()` function. See\n// [the Python documentation](https://docs.python.org/library/functions.html#range).\nexport default function range(start, stop, step) {\n if (stop == null) {\n stop = start || 0;\n start = 0;\n }\n if (!step) {\n step = stop < start ? -1 : 1;\n }\n\n var length = Math.max(Math.ceil((stop - start) / step), 0);\n var range = Array(length);\n\n for (var idx = 0; idx < length; idx++, start += step) {\n range[idx] = start;\n }\n\n return range;\n}\n","import { slice } from './_setup.js';\n\n// Chunk a single array into multiple arrays, each containing `count` or fewer\n// items.\nexport default function chunk(array, count) {\n if (count == null || count < 1) return [];\n var result = [];\n var i = 0, length = array.length;\n while (i < length) {\n result.push(slice.call(array, i, i += count));\n }\n return result;\n}\n","import _ from './underscore.js';\n\n// Helper function to continue chaining intermediate results.\nexport default function chainResult(instance, obj) {\n return instance._chain ? _(obj).chain() : obj;\n}\n","import _ from './underscore.js';\nimport each from './each.js';\nimport functions from './functions.js';\nimport { push } from './_setup.js';\nimport chainResult from './_chainResult.js';\n\n// Add your own custom functions to the Underscore object.\nexport default function mixin(obj) {\n each(functions(obj), function(name) {\n var func = _[name] = obj[name];\n _.prototype[name] = function() {\n var args = [this._wrapped];\n push.apply(args, arguments);\n return chainResult(this, func.apply(_, args));\n };\n });\n return _;\n}\n","import _ from './underscore.js';\nimport each from './each.js';\nimport { ArrayProto } from './_setup.js';\nimport chainResult from './_chainResult.js';\n\n// Add all mutator `Array` functions to the wrapper.\neach(['pop', 'push', 'reverse', 'shift', 'sort', 'splice', 'unshift'], function(name) {\n var method = ArrayProto[name];\n _.prototype[name] = function() {\n var obj = this._wrapped;\n if (obj != null) {\n method.apply(obj, arguments);\n if ((name === 'shift' || name === 'splice') && obj.length === 0) {\n delete obj[0];\n }\n }\n return chainResult(this, obj);\n };\n});\n\n// Add all accessor `Array` functions to the wrapper.\neach(['concat', 'join', 'slice'], function(name) {\n var method = ArrayProto[name];\n _.prototype[name] = function() {\n var obj = this._wrapped;\n if (obj != null) obj = method.apply(obj, arguments);\n return chainResult(this, obj);\n };\n});\n\nexport default _;\n","// Default Export\n// ==============\n// In this module, we mix our bundled exports into the `_` object and export\n// the result. This is analogous to setting `module.exports = _` in CommonJS.\n// Hence, this module is also the entry point of our UMD bundle and the package\n// entry point for CommonJS and AMD users. In other words, this is (the source\n// of) the module you are interfacing with when you do any of the following:\n//\n// ```js\n// // CommonJS\n// var _ = require('underscore');\n//\n// // AMD\n// define(['underscore'], function(_) {...});\n//\n// // UMD in the browser\n// // _ is available as a global variable\n// ```\nimport * as allExports from './index.js';\nimport { mixin } from './index.js';\n\n// Add all of the Underscore functions to the wrapper object.\nvar _ = mixin(allExports);\n// Legacy Node.js API.\n_._ = _;\n// Export the Underscore API.\nexport default _;\n","import {Component} from 'react';\n\nclass SearchItem extends Component{\n\tconstructor(props){\n\t\tsuper();\n\t\tthis.state = {\n\t\t\tover: props.isOver,\n\t\t};\n\t}\n\tcomponentWillReceiveProps(nextProps){\n\t\tthis.state.over = nextProps.isOver;\n\t}\n\trender(){\n\t\tconst {display_name} = this.props.author;\n\t\treturn(\n\t\t\t<div\n\t\t\t\tonMouseOver={this.onMouseOver.bind(this, true)}\n\t\t\t\tonMouseOut={this.onMouseOver.bind(this, false)}\n\t\t\t\tonClick={this.onClick.bind(this)}\n\t\t\t\tclassName={`additional-authors-search-item ${(this.state.over)? 'is-over': ''}`}\n\t\t\t>\n\t\t\t\t{display_name}\n\t\t\t</div>\n\t\t)\n\t}\n\tonMouseOver(is_over){\n\t\tthis.setState({over: is_over});\n\t}\n\tonClick(){\n\t\tthis.props.onSelect(this.props.author);\n\t}\n}\n\n/**\n * export component to public\n */\nexport default SearchItem;","import {Component} from 'react';\n\nclass NewItem extends Component{\n\tconstructor(props){\n\t\tsuper();\n\t\tthis.state = {\n\t\t\tover: props.isOver,\n\t\t};\n\t}\n\tcomponentWillReceiveProps(nextProps){\n\t\tthis.state.over = nextProps.isOver;\n\t}\n\trender(){\n\t\treturn(\n\t\t\t<div\n\t\t\t\tonMouseOver={this.onMouseOver.bind(this, true)}\n\t\t\t\tonMouseOut={this.onMouseOver.bind(this, false)}\n\t\t\t\tonClick={this.onClick.bind(this)}\n\t\t\t\tclassName={`additional-authors-new-item ${(this.state.over)? 'is-over': ''}`}\n\t\t\t>\n\t\t\t\tNew user \"{this.props.name}\"\n\t\t\t</div>\n\t\t)\n\t}\n\tonMouseOver(is_over){\n\t\tthis.setState({over: is_over});\n\t}\n\tonClick(){\n\t\tthis.props.onSelect(this.props.name);\n\t}\n}\n\n/**\n * export component to public\n */\nexport default NewItem;","import {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport SearchItem from './search-item.jsx';\nimport NewItem from './new-item.jsx';\n\nclass Search extends Component {\n\n\t/**\n\t * ------------------------------------------------\n\t * lifecycle\n\t * ------------------------------------------------\n\t */\n\tconstructor(props) {\n\t\tsuper(props);\n\t\tthis.state = {\n\t\t\tquery: \"\",\n\t\t\tover_index: 0,\n\t\t\tsearch_result: [],\n\t\t\tfocus: false,\n\t\t}\n\t}\n\n\t/**\n\t * ------------------------------------------------\n\t * rendering\n\t * ------------------------------------------------\n\t */\n\trender() {\n\t\tconst {query} = this.state;\n\t\treturn (\n\t\t\t<div\n\t\t\t\tclassName=\"additional-authors-search\"\n\t\t\t onKeyUp={this.onKeyUp.bind(this)}\n\t\t\t>\n\t\t\t\t<label>\n\t\t\t\t\t{this.props.languages.label}\n\t\t\t\t\t<br />\n\t\t\t\t\t<input\n\t\t\t\t\t\tclassName=\"additional-authors-search__input\"\n\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\tvalue={query}\n\t\t\t\t\t\tonKeyDown={this.onKeyDown.bind(this)}\n\t\t\t\t\t onChange={this.onChange.bind(this)}\n\t\t\t\t\t onFocus={this.onFocusSearch.bind(this, true)}\n\t\t\t\t\t onBlur={this.onFocusSearch.bind(this, false)}\n\t\t\t\t\t/>\n\t\t\t\t</label>\n\t\t\t\t{this.renderList()}\n\t\t\t</div>\n\t\t)\n\t}\n\trenderList(){\n\t\tconst {selected} = this.props;\n\t\tconst {over_index, search_result, focus, query} = this.state;\n\t\tif(focus){\n\t\t\tconst newItem = (query !== \"\") ? (<NewItem\n\t\t\tname={query}\n\t\t\tisOver={(over_index === search_result.length)}\n\t\t\tonSelect={this.onNewItem.bind(this)}\n\t\t\t/>): null;\n\t\t\treturn (\n\t\t\t\t<div\n\t\t\t\t\tclassName=\"additional-authors-search-list\"\n\t\t\t\t>\n\t\t\t\t\t{search_result.map((item, index)=>{\n\t\t\t\t\t\treturn <SearchItem\n\t\t\t\t\t\t\tkey={item.ID}\n\t\t\t\t\t\t\tauthor={item}\n\t\t\t\t\t\t\tonSelect={this.onSelect.bind(this, item)}\n\t\t\t\t\t\t\tisOver={(over_index === index)}\n\t\t\t\t\t\t/>\n\t\t\t\t\t})}\n\t\t\t\t\t{newItem}\n\t\t\t\t</div>\n\t\t\t)\n\t\t}\n\t\treturn null;\n\t}\n\n\t/**\n\t * ------------------------------------------------\n\t * events\n\t * ------------------------------------------------\n\t */\n\tonChange(e){\n\n\t\tif(e) this.state.query = e.target.value;\n\n\t\tconst {users, selected} = this.props;\n\t\tconst {query} = this.state;\n\n\t\tlet search_result = [];\n\n\t\tif(query !== ''){\n\t\t\tfor(let user of users){\n\t\t\t\tif(user.display_name.toLowerCase().indexOf(query.toLowerCase()) > -1){\n\t\t\t\t\tif(selected.indexOf(user.ID+\"\") >= 0 || selected.indexOf(parseInt(user.ID)) >= 0) continue;\n\t\t\t\t\tsearch_result.unshift(user);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tsearch_result = [];\n\t\t}\n\n\t\tthis.setState({over_index: 0, search_result: search_result});\n\t}\n\n\tonFocusSearch(focus){\n\t\tclearTimeout(this.closeTimeout);\n\t\tif(!focus){\n\t\t\t// just enough time to check if list item was clicked\n\t\t\tthis.closeTimeout = setTimeout(()=>{\n\t\t\t\tthis.setState({focus: focus});\n\t\t\t},600);\n\t\t\treturn;\n\t\t}\n\t\tthis.setState({focus: focus});\n\t}\n\tonSelect(user){\n\t\tthis.props.onSelect(user);\n\t\tthis.setState({focus: false});\n\t\tthis.onChange();\n\t}\n\tonNewItem(name){\n\t\tif(name === \"\") return;\n\t\tthis.props.onSelect({\n\t\t\tID: 0,\n\t\t\tdisplay_name: name,\n\t\t\tuser_nicename: \"-\",\n\t\t});\n\t\tthis.setState({query:\"\", search_result:[] });\n\t}\n\tonKeyDown(e){\n\t\tconst ENTER = 13;\n\t\tif(ENTER === e.keyCode && this.state.focus){\n\t\t\te.preventDefault();\n\t\t\tif(typeof this.state.search_result[this.state.over_index] != typeof undefined ){\n\t\t\t\tthis.onSelect(this.state.search_result[this.state.over_index]);\n\t\t\t}\n\t\t} else {\n\t\t\tthis.setState({focus: true});\n\t\t}\n\t}\n\tonKeyUp(e){\n\n\t\tif(!this.state.focus) return;\n\n\t\tconst ESC = 27;\n\t\tconst UP = 38;\n\t\tconst DOWN = 40;\n\n\t\tif(ESC === e.keyCode){\n\t\t\tthis.setState({search_result: []});\n\t\t\treturn;\n\t\t}\n\t\telse if(UP === e.keyCode){\n\t\t\te.preventDefault();\n\t\t\tthis.state.over_index--;\n\t\t} else if(DOWN === e.keyCode){\n\t\t\te.preventDefault();\n\t\t\tthis.state.over_index++;\n\t\t}\n\t\tif(this.state.over_index > this.state.search_result.length){\n\t\t\tthis.state.over_index = this.state.search_result.length;\n\t\t} else if(this.state.over_index < 0) {\n\t\t\tthis.state.over_index = 0;\n\t\t}\n\n\t\tthis.setState({over_index: this.state.over_index });\n\t}\n\n\t/**\n\t * ------------------------------------------------\n\t * other functions\n\t * ------------------------------------------------\n\t */\n}\n\n/**\n * property defaults\n */\nSearch.defaultProps = {\n\tusers: [],\n};\n\n/**\n * define property types\n */\nSearch.propTypes = {\n\tusers: PropTypes.array.isRequired,\n\tselected: PropTypes.array.isRequired,\n\tlanguages: PropTypes.object.isRequired,\n\tonSelect: PropTypes.func.isRequired,\n};\n\n/**\n * export component to public\n */\nexport default Search;\n","import PropTypes from 'prop-types';\n\nconst Delete = ({onClick}) => {\n\treturn (\n\t\t<span\n\t\t\tclassName=\"author-item__delete\"\n\t\t\tonClick={onClick}\n\t\t>\n\t\t\t×\n\t\t</span>\n\t)\n}\n\nconst ProfileLink = ({author}) => {\n\tconst {ID,display_name} = author;\n\tif(ID > 0){\n\t\treturn <a href={`/wp-admin/user-edit.php?user_id=${ID}`} target=\"_blank\">{display_name}</a>\n\t}\n\treturn display_name\n}\n\nconst AuthorItem = ({author, isMainAuthor, index, onUnselect, onChangePosition})=>{\n\n\treturn (\n\t\t<div\n\t\t\tclassName={`author-item${(isMainAuthor)?\" is-main-author\":\"\"}${(author.ID < 0)?\" is-new-author\":\"\"}`}\n\t\t>\n\t\t\t\t<span className=\"autor-item__name\">\n\t\t\t\t\t<ProfileLink author={author} />\n\t\t\t\t\t<span className=\"author-item__nicename\">{author.user_nicename}</span>\n\t\t\t\t</span>\n\n\t\t\t{isMainAuthor? null : <Delete onClick={onUnselect} /> }\n\n\t\t\t<span\n\t\t\t\tclassName=\"author-item__move author-item__up\"\n\t\t\t\tonClick={()=>onChangePosition(index-1)}\n\t\t\t>\n\t\t\t\t\t▲\n\t\t\t\t</span>\n\t\t\t<span\n\t\t\t\tclassName=\"author-item__move author-item__down\"\n\t\t\t\tonClick={()=>onChangePosition(index+1)}\n\t\t\t>\n\t\t\t\t\t▼\n\t\t\t\t</span>\n\t\t\t<input type=\"hidden\" name=\"additional_authors[ids][]\" value={author.ID} />\n\t\t\t<input type=\"hidden\" name=\"additional_authors[names][]\" value={author.display_name} />\n\t\t</div>\n\t)\n\n}\n\n/**\n * property defaults\n */\nAuthorItem.defaultProps = {\n\tauthor: {\n\t\tID: -1,\n\t\tdisplay_name: \"\",\n\t\tuser_login: \"\",\n\t},\n\tclassName: \"\",\n};\n\n/**\n * define property types\n */\nAuthorItem.propTypes = {\n\tauthor: PropTypes.object.isRequired,\n\tindex: PropTypes.number.isRequired,\n\tonUnselect: PropTypes.func.isRequired,\n\tonChangePosition: PropTypes.func.isRequired,\n\tisMainAuthor: PropTypes.bool.isRequired,\n};\n\n/**\n * export component to public\n */\nexport default AuthorItem;","import {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport _ from 'underscore';\n\nimport Search from './search.jsx';\nimport AuthorItem from './author-item.jsx';\n\nclass MetaBox extends Component {\n\t\n\t/**\n\t * ------------------------------------------------\n\t * lifecycle\n\t * ------------------------------------------------\n\t */\n\tconstructor(props) {\n\t\tsuper(props);\n\t\t\n\t\tthis.state = {\n\t\t\tusers: props.users,\n\t\t\tselected: this.props.selected,\n\t\t\tnew_user_id: -1,\n\t\t};\n\t\t\n\t}\n\n\tcomponentDidMount(){\n\t\tthis.dispatchChanged();\n\t\tthis.getMainUserControl();\n\t}\n\t\n\t/**\n\t * ------------------------------------------------\n\t * rendering\n\t * ------------------------------------------------\n\t */\n\trender() {\n\t\tconst {language, isGutenbergActive} = this.props;\n\t\tconst {selected, users, new_users, main_author} = this.state;\n\t\tlet gutenbergInfo = null;\n\t\tif(isGutenbergActive){\n\t\t\tgutenbergInfo = <input type=\"hidden\" name=\"additional_authors_is_gutenberg\" value=\"it-is\" />\n\t\t}\n\n\t\tconst selectedIds = selected.map(u=>u.ID);\n\n\t\treturn (\n\t\t\t<div className=\"additional-authors\">\n\t\t\t\t{gutenbergInfo}\n\t\t\t\t<Search\n\t\t\t\t\tusers={users}\n\t\t\t\t\tselected={selected}\n\t\t\t\t\tlanguages={language}\n\t\t\t\t onSelect={this.onSelect.bind(this)}\n\t\t\t\t/>\n\t\t\t\t\n\t\t\t\t<hr/>\n\t\t\t\t\n\t\t\t\t<p><i>{language.description}</i></p>\n\n\t\t\t\t<div>\n\n\t\t\t\t\t{selected.map((id, index)=>{\n\t\t\t\t\t\tif(isGutenbergActive && index === 0) return null;\n\t\t\t\t\t\tfor(const key in users){\n\t\t\t\t\t\t\tif(!users.hasOwnProperty(key)) continue;\n\t\t\t\t\t\t\tconst _user = users[key];\n\t\t\t\t\t\t\tif(parseInt(_user.ID) === parseInt(id)){\n\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t<AuthorItem\n\t\t\t\t\t\t\t\t\t\tkey={id}\n\t\t\t\t\t\t\t\t\t\tindex={index}\n\t\t\t\t\t\t\t\t\t\tauthor={_user}\n\t\t\t\t\t\t\t\t\t onUnselect={this.onUnselect.bind(this,_user)}\n\t\t\t\t\t\t\t\t\t onChangePosition={this.onChangePosition.bind(this,_user, index)}\n\t\t\t\t\t\t\t\t\t isMainAuthor={(index === 0)}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t})}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t)\n\t}\n\t\n\t/**\n\t * ------------------------------------------------\n\t * events\n\t * ------------------------------------------------\n\t */\n\tonSelect(author){\n\t\tif(author.ID == 0){\n\t\t\tauthor.ID = this.state.new_user_id--;\n\t\t\tthis.state.users.push(author);\n\t\t}\n\t\t\n\t\tthis.state.selected.push(author.ID);\n\t\tthis.state.selected = _.unique(this.state.selected);\n\t\tthis.setState({ selected: this.state.selected });\n\n\t\tthis.dispatchChanged();\n\t\t\n\t}\n\tonUnselect(author){\n\t\tlet selected = [];\n\t\tif(this.state.main_author == author.ID){\n\t\t\tconsole.log(\"you cannot delete main author\");\n\t\t\treturn;\n\t\t}\n\t\tfor(let _id of this.state.selected){\n\t\t\t\n\t\t\tif(_id == author.ID) continue;\n\t\t\tselected.push(_id);\n\t\t}\n\t\tthis.setState({selected: selected});\n\t\tthis.dispatchChanged()\n\t}\n\tonChangePosition(user, from, to){\n\t\tlet selected = [];\n\t\t\n\t\t/**\n\t\t * new user cannot be on first position\n\t\t */\n\t\tif(to == 0 && user.ID <= 0) return;\n\t\t\n\t\tfor(let index in this.state.selected){\n\t\t\t\n\t\t\tif(!this.state.selected.hasOwnProperty(index)) continue;\n\t\t\t\n\t\t\tif(index == from){\n\t\t\t\tselected.push(this.state.selected[to]);\n\t\t\t} else if( index == to){\n\t\t\t\tselected.push(this.state.selected[from]);\n\t\t\t} else {\n\t\t\t\tselected.push(this.state.selected[index]);\n\t\t\t}\n\t\t}\n\t\tthis.setMainUserID(selected[0]);\n\t\tthis.setState({selected: selected, main_author: this.getMainUserID()});\n\t\tthis.dispatchChanged();\n\t}\n\tonMainAuthorChanged(e){\n\t\tconst author_id = e.target.value;\n\t\t\n\t\t/**\n\t\t * remove if already in selecteds\n\t\t * @type {number}\n\t\t */\n\t\tlet index = 0;\n\t\twhile(index < this.state.selected.length){\n\t\t\tif(this.state.selected[index] === author_id){\n\t\t\t\tthis.state.selected.splice(index,1);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tindex++;\n\t\t}\n\t\t\n\t\t/**\n\t\t * add to top as main author\n\t\t */\n\t\tthis.state.selected.unshift(author_id);\n\t\t\n\t\t// update main author\n\t\tthis.setState({selected:this.state.selected});\n\t}\n\t\n\t/**\n\t * ------------------------------------------------\n\t * other functions\n\t * ------------------------------------------------\n\t */\n\tgetMainUserControl(){\n\t\tif(this.props.isGutenbergActive) return null;\n\n\t\tif(this._main_user_select != null) return this._main_user_select;\n\t\tlet control = document.getElementById(\"post_author_override\");\n\t\tif(control == null)\n\t\t\tcontrol = document.getElementById(\"post-author-selector-1\");\n\n\t\tif(control != null){\n\t\t\tthis._main_user_select = control;\n\t\t\tthis._main_user_select.addEventListener(\"change\",this.onMainAuthorChanged.bind(this));\n\t\t}\n\t\treturn this._main_user_select;\n\t}\n\tsetMainUserID(user_id){\n\t\tconst control = this.getMainUserControl();\n\t\tif(typeof control !== typeof undefined && control != null){\n\t\t\tcontrol.value = user_id;\n\t\t\tcontrol.dispatchEvent(new Event(\"change\"));\n\t\t}\n\n\t}\n\tgetMainUserID(){\n\t\tconst control = this.getMainUserControl();\n\t\tif(typeof control !== typeof undefined && control !== null) return control.value;\n \t\treturn -1;\n\t}\n\tisSelected(user_id){\n\t\tfor(let _uid of this.state.selected){\n\t\t\tif(_uid === user_id) return true;\n\t\t}\n\t\treturn false;\n\t}\n\tdispatchChanged(){\n\t\tclearTimeout(this.dispatchTimeout);\n\t\tthis.dispatchTimeout = setTimeout(()=>{\n\t\t\tconst users = [];\n\t\t\tfor(const uid of this.state.selected){\n\t\t\t\tfor(const user of this.props.users){\n\t\t\t\t\tif(parseInt(user.ID) === parseInt(uid)){\n\t\t\t\t\t\tusers.push({...user});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.props.onAuthorsChange(users);\n\t\t}, 300);\n\n\t}\n}\n\n/**\n * property defaults\n */\nMetaBox.defaultProps = {\n\tusers: [],\n\tlanguage: {},\n\tonAuthorsChange: () => {},\n};\n\n/**\n * define property types\n */\nMetaBox.propTypes = {\n\tisGutenbergActive: PropTypes.bool.isRequired,\n\tusers: PropTypes.array.isRequired,\n\tselected: PropTypes.array.isRequired,\n\tlanguage: PropTypes.object.isRequired,\n\tonAuthorsChange: PropTypes.func,\n};\n\n/**\n * export component to public\n */\nexport default MetaBox;","import ReactDOM from 'react-dom';\nimport MetaBox from './meta-box/meta-box.jsx';\n\nimport \"./meta-box.scss\";\n\n/**\n * wait for dom to be ready so all plugins etc are loaded\n */\ndocument.addEventListener(\"DOMContentLoaded\", function(event) {\n\t\n\t/**\n\t * append app to grid app root\n\t */\n\t\n\tconst {language, users, selected, root_id} = AdditionalAuthors;\n\n\tReactDOM.render(\n\t\t<MetaBox\n\t\t\tisGutenbergActive={false}\n\t\t\tlanguage={language}\n\t\t\tusers={users}\n\t\t selected={selected}\n\t\t\tonAuthorsChange={(authors)=>{\n\t\t\t\tdocument.dispatchEvent(new CustomEvent(\"onAdditionalAuthorsChange\", { detail: authors }));\n\t\t\t}}\n\t\t/>,\n\t\tdocument.getElementById(root_id)\n\t);\n});"],"names":["ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","module","exports","shim","props","propName","componentName","location","propFullName","secret","err","Error","name","getShim","isRequired","ReactPropTypes","array","bigint","bool","func","number","object","string","symbol","any","arrayOf","element","elementType","instanceOf","node","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","PropTypes","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","window","VERSION","root","self","global","Function","ArrayProto","Array","ObjProto","SymbolProto","push","slice","toString","supportsArrayBuffer","ArrayBuffer","supportsDataView","DataView","nativeIsArray","isArray","nativeKeys","keys","nativeCreate","create","nativeIsView","isView","_isNaN","isNaN","_isFinite","isFinite","hasEnumBug","propertyIsEnumerable","nonEnumerableProps","MAX_ARRAY_INDEX","Math","pow","restArguments","startIndex","length","max","arguments","rest","index","this","args","apply","isObject","type","isNull","isUndefined","isBoolean","isElement","nodeType","tagTester","tag","isFunction","nodelist","document","childNodes","Int8Array","hasStringTagBug","isIE11","Map","isDataView","getInt8","isArrayBuffer","buffer","has","isArguments","isSymbol","parseFloat","isNumber","constant","createSizePropertyCheck","getSizeProperty","collection","sizeProperty","shallowProperty","typedArrayPattern","test","collectNonEnumProps","hash","l","i","contains","emulatedSet","nonEnumIdx","constructor","proto","isEmpty","isString","isMatch","attrs","_keys","_","_wrapped","toBufferView","bufferSource","Uint8Array","byteOffset","valueOf","toJSON","String","tagDataView","eq","b","aStack","bStack","deepEq","className","areArrays","aCtor","bCtor","pop","isEqual","allKeys","ie11fingerprint","methods","weakMapMethods","forEachName","commonInit","mapTail","mapMethods","concat","setMethods","values","pairs","invert","result","functions","names","sort","createAssigner","keysFunc","defaults","source","baseCreate","Ctor","extendOwn","clone","extend","tap","interceptor","toPath","path","deepGet","defaultValue","identity","matcher","property","optimizeCb","context","argCount","accumulator","baseIteratee","iteratee","Infinity","cb","mapObject","results","currentKey","noop","propertyOf","times","accum","random","min","floor","Date","now","getTime","createEscaper","map","escaper","match","join","testRegexp","RegExp","replaceRegexp","replace","templateSettings","evaluate","interpolate","escape","noMatch","escapes","escapeRegExp","escapeChar","bareIdentifier","template","text","settings","oldSettings","offset","render","argument","variable","e","data","fallback","idCounter","uniqueId","prefix","id","chain","instance","_chain","executeBound","sourceFunc","boundFunc","callingContext","partial","boundArgs","placeholder","bound","position","TypeError","callArgs","flatten","input","depth","strict","output","idx","j","len","bind","memoize","hasher","cache","address","wait","setTimeout","delay","throttle","options","timeout","previous","later","leading","throttled","_now","remaining","clearTimeout","trailing","cancel","debounce","immediate","passed","debounced","_args","wrap","wrapper","negate","predicate","compose","start","after","before","memo","findKey","createPredicateIndexFinder","dir","sortedIndex","low","high","mid","createIndexFinder","predicateFind","item","findIndex","findLastIndex","find","findWhere","each","createReduce","initial","reducer","filter","list","reject","every","some","fromIndex","guard","indexOf","contextPath","method","pluck","where","computed","lastComputed","v","reStrSymbol","toArray","sample","last","rand","temp","shuffle","sortBy","criteria","left","right","group","behavior","partition","pass","size","keyInObj","pick","first","compact","Boolean","otherArrays","difference","uniq","isSorted","seen","arrays","intersection","argsLength","unzip","range","stop","step","ceil","chunk","count","chainResult","mixin","SearchItem","Component","super","state","over","isOver","componentWillReceiveProps","nextProps","display_name","author","createElement","onMouseOver","onMouseOut","onClick","is_over","setState","onSelect","NewItem","Search","query","over_index","search_result","focus","onKeyUp","languages","label","onKeyDown","onChange","onFocus","onFocusSearch","onBlur","renderList","selected","newItem","onNewItem","ID","target","users","user","toLowerCase","parseInt","unshift","closeTimeout","user_nicename","keyCode","preventDefault","defaultProps","propTypes","Delete","ProfileLink","href","AuthorItem","isMainAuthor","onUnselect","onChangePosition","user_login","MetaBox","new_user_id","componentDidMount","dispatchChanged","getMainUserControl","language","isGutenbergActive","new_users","main_author","gutenbergInfo","u","description","_user","_id","console","log","from","to","setMainUserID","getMainUserID","onMainAuthorChanged","author_id","splice","_main_user_select","control","getElementById","addEventListener","user_id","dispatchEvent","Event","isSelected","_uid","dispatchTimeout","uid","onAuthorsChange","event","root_id","AdditionalAuthors","ReactDOM","authors","CustomEvent","detail"],"sourceRoot":""} -
additional-authors/trunk/dist/additional-authors.asset.php
r2951153 r3012943 1 <?php return array('dependencies' => array('react', 'wp-components', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-plugins'), 'version' => ' 840828c8bcdefc83fa8c');1 <?php return array('dependencies' => array('react', 'wp-components', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-plugins'), 'version' => '9e774120bbfcaf2dfc3a'); -
additional-authors/trunk/dist/additional-authors.js
r2951153 r3012943 1 (()=>{var e={ 703:(e,t,n)=>{"use strict";var r=n(414);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,s){if(s!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},193:(e,t,n)=>{e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t){e.exports=n(196)},function(e,t,n){"use strict";n.r(t);var r=n(0);t.default=function(e,t,n){void 0===n&&(n="click");var o=Object(r.useRef)(t);Object(r.useEffect)((function(){o.current=t})),Object(r.useEffect)((function(){var t=function(t){e&&e.current&&(t.target.shadowRoot?t.target.shadowRoot.contains(e.current)||o.current(t):e.current.contains(t.target)||o.current(t))};return document.addEventListener(n,t),document.addEventListener("touchstart",t),function(){document.removeEventListener(n,t),document.removeEventListener("touchstart",t)}}))}}])},196:e=>{"use strict";e.exports=window.React}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.element,t=window.wp.plugins,r=window.wp.editPost;function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}const a=window.wp.components;var s=n(193),i=n.n(s);const u=t=>{let{display_name:n,onClick:r}=t;return(0,e.createElement)("div",{className:"additional-authors-author",onClick:r},n)},c=t=>{let{i18n:n,users:r,onFound:s}=t;const[c,l]=(0,e.useState)(""),[d,p]=(0,e.useState)(!1),[f,m]=(0,e.useState)([]),h=(0,e.useRef)();return i()(h,(()=>{p(!1)})),(0,e.useEffect)((()=>{m(r.filter((e=>""===c||e.display_name.toLowerCase().includes(c.toLowerCase()))))}),[c,r]),function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];(0,e.useEffect)((()=>{if(!r)return;const e=e=>{let{key:n}=e;"Escape"===n&&t()};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}),n)}((()=>{p(!1)}),[d],d),(0,e.createElement)(a.BaseControl,{className:"additional-authors--search-author"},(0,e.createElement)("div",{ref:h},(0,e.createElement)("div",{className:"additional-authors--search-authors__input-wrapper"},(0,e.createElement)(a.TextControl,{label:n.label,value:c,onChange:e=>{p(!0),l(e)},onFocus:()=>p(!0)})),d?(0,e.createElement)(a.Popover,{focusOnMount:!1,position:"bottom center"},f.length>0?f.map((t=>(0,e.createElement)(u,o({key:t.ID},t,{onClick:()=>{p(!1),s(t)}})))):(0,e.createElement)("p",{className:"additional-authors--search-author__no-results"},n.search_404)):null))},l=window.wp.data,d=()=>{const e=(0,l.useSelect)((e=>e("core/editor").getCurrentPost().author));return(0,l.useSelect)((e=>e("core/editor").getPostEdits().author))||e};var p=n(697),f=n.n(p);const m=t=>{let{onClick:n}=t;return(0,e.createElement)("span",{className:"author-item__delete",onClick:n},"×")},h=t=>{let{author:n}=t;const{ID:r,display_name:o}=n;return r>0?(0,e.createElement)("a",{href:`/wp-admin/user-edit.php?user_id=${r}`,target:"_blank"},o):o},v=t=>{let{author:n,index:r,onUnselect:o,onChangePosition:a}=t;return(0,e.createElement)("div",{className:"author-item "+(n.ID<0?"is-new-author":"")},(0,e.createElement)("span",{className:"autor-item__name"},(0,e.createElement)(h,{author:n}),(0,e.createElement)("span",{className:"author-item__nicename"},n.user_nicename)),(0,e.createElement)(m,{onClick:o}),(0,e.createElement)("span",{className:"author-item__move author-item__up",onClick:()=>a(r-1)},"▲"),(0,e.createElement)("span",{className:"author-item__move author-item__down",onClick:()=>a(r+1)},"▼"))};v.defaultProps={author:{ID:-1,display_name:"",user_login:""},className:""},v.propTypes={author:f().object.isRequired,index:f().number.isRequired,onUnselect:f().func.isRequired,onChangePosition:f().func.isRequired,isMainAuthor:f().bool.isRequired};const _=v,y=t=>{const{users:n,i18n:r}=t,o=d(),[a,s]=(()=>{const t=d(),n=(0,l.useSelect)((e=>e("core/editor").getCurrentPost().additional_authors)),r=(0,l.useSelect)((e=>e("core/editor").getPostEdits().additional_authors)),{editPost:o}=(0,l.useDispatch)("core/editor"),a=(r||n).filter((e=>parseInt(t)!==parseInt(e)));return(0,e.useEffect)((()=>{(a.includes(t+"")||a.includes(parseInt(t)))&&o(a.filter((e=>parseInt(e)!==parseInt(t))))}),[t,a]),[a,e=>{o({additional_authors:[t,...e]})}]})();return(0,e.createElement)("div",{style:{marginBottom:20}},(0,e.createElement)(c,{i18n:r,users:n.filter((e=>{const t=!a.includes(e.ID+"")&&!a.includes(parseInt(e.ID));return t||console.debug(e.ID,t),t&&parseInt(e.ID)!==parseInt(o)})),onFound:e=>{const t=[...new Set([...a,e.ID])];s(t),document.dispatchEvent(new CustomEvent("onAdditionalAuthorsChange",{detail:t.map((e=>n.find((t=>parseInt(t.ID)===parseInt(e)))))}))}}),(0,e.createElement)("div",null,a.filter((e=>parseInt(o)!==parseInt(e))).map(((t,r)=>(0,e.createElement)(_,{key:t,author:n.find((e=>parseInt(e.ID)===parseInt(t))),index:r,onChangePosition:e=>((e,t)=>{const n=a[e],r=a[t],o=[...a];o[e]=r,o[t]=n,s(o)})(r,e),onUnselect:()=>(e=>{s(a.filter((t=>parseInt(t)!==parseInt(e))))})(t),isMainAuthor:!1})))))};(0,t.registerPlugin)("post-status-info-test",{render:()=>(0,e.createElement)(r.PluginPostStatusInfo,null,(0,e.createElement)(y,AdditionalAuthors))})})()})();1 (()=>{var e={49:(e,t,n)=>{"use strict";var r=n(257);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,o,s){if(s!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return n.PropTypes=n,n}},507:(e,t,n)=>{e.exports=n(49)()},257:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.React,t=window.wp.plugins,r=window.wp.editPost,a=window.wp.components,o=window.wp.element,s=({display_name:t,onClick:n})=>(0,e.createElement)("div",{className:"additional-authors-author",onClick:n},t),i=({i18n:t,users:n,onFound:r})=>{const[i,c]=(0,o.useState)(""),[l,u]=(0,o.useState)(!1),[d,p]=(0,o.useState)([]);return(0,o.useEffect)((()=>{p(n.filter((e=>""===i||e.display_name.toLowerCase().includes(i.toLowerCase()))))}),[i,n]),((e,t=[],n=!0)=>{(0,o.useEffect)((()=>{if(!n)return;const t=({key:t})=>{"Escape"===t&&e()};return window.addEventListener("keydown",t),()=>{window.removeEventListener("keydown",t)}}),t)})((()=>{u(!1)}),[l],l),(0,e.createElement)(a.BaseControl,{className:"additional-authors--search-author"},(0,e.createElement)("div",null,(0,e.createElement)("div",{className:"additional-authors--search-authors__input-wrapper"},(0,e.createElement)(a.TextControl,{label:t.label,value:i,onChange:e=>{u(!0),c(e)},onFocus:()=>u(!0)})),l?(0,e.createElement)(a.Popover,{focusOnMount:!1,position:"bottom center"},d.length>0?d.map((t=>(0,e.createElement)(s,{key:t.ID,...t,onClick:()=>{u(!1),r(t)}}))):(0,e.createElement)("p",{className:"additional-authors--search-author__no-results"},t.search_404)):null))},c=window.wp.data,l=()=>{const e=(0,c.useSelect)((e=>e("core/editor").getCurrentPost().author));return(0,c.useSelect)((e=>e("core/editor").getPostEdits().author))||e};var u=n(507),d=n.n(u);const p=({onClick:t})=>(0,e.createElement)("span",{className:"author-item__delete",onClick:t},"×"),m=({author:t})=>{const{ID:n,display_name:r}=t;return n>0?(0,e.createElement)("a",{href:`/wp-admin/user-edit.php?user_id=${n}`,target:"_blank"},r):r},h=({author:t,index:n,onUnselect:r,onChangePosition:a})=>(0,e.createElement)("div",{className:"author-item "+(t.ID<0?"is-new-author":"")},(0,e.createElement)("span",{className:"autor-item__name"},(0,e.createElement)(m,{author:t}),(0,e.createElement)("span",{className:"author-item__nicename"},t.user_nicename)),(0,e.createElement)(p,{onClick:r}),(0,e.createElement)("span",{className:"author-item__move author-item__up",onClick:()=>a(n-1)},"▲"),(0,e.createElement)("span",{className:"author-item__move author-item__down",onClick:()=>a(n+1)},"▼"));h.defaultProps={author:{ID:-1,display_name:"",user_login:""},className:""},h.propTypes={author:d().object.isRequired,index:d().number.isRequired,onUnselect:d().func.isRequired,onChangePosition:d().func.isRequired,isMainAuthor:d().bool.isRequired};const _=h,f=t=>{const{users:n,i18n:r}=t,a=l(),[s,u]=(()=>{const e=l(),t=(0,c.useSelect)((e=>e("core/editor").getCurrentPost().additional_authors)),n=(0,c.useSelect)((e=>e("core/editor").getPostEdits().additional_authors)),{editPost:r}=(0,c.useDispatch)("core/editor"),a=(n||t).filter((t=>parseInt(e)!==parseInt(t)));return(0,o.useEffect)((()=>{(a.includes(e+"")||a.includes(parseInt(e)))&&r(a.filter((t=>parseInt(t)!==parseInt(e))))}),[e,a]),[a,t=>{r({additional_authors:[e,...t]})}]})();return(0,e.createElement)("div",{style:{marginBottom:20}},(0,e.createElement)(i,{i18n:r,users:n.filter((e=>{const t=!s.includes(e.ID+"")&&!s.includes(parseInt(e.ID));return t||console.debug(e.ID,t),t&&parseInt(e.ID)!==parseInt(a)})),onFound:e=>{const t=[...new Set([...s,e.ID])];u(t),document.dispatchEvent(new CustomEvent("onAdditionalAuthorsChange",{detail:t.map((e=>n.find((t=>parseInt(t.ID)===parseInt(e)))))}))}}),(0,e.createElement)("div",null,s.filter((e=>parseInt(a)!==parseInt(e))).map(((t,r)=>(0,e.createElement)(_,{key:t,author:n.find((e=>parseInt(e.ID)===parseInt(t))),index:r,onChangePosition:e=>((e,t)=>{const n=s[e],r=s[t],a=[...s];a[e]=r,a[t]=n,u(a)})(r,e),onUnselect:()=>(e=>{u(s.filter((t=>parseInt(t)!==parseInt(e))))})(t),isMainAuthor:!1})))))};(0,t.registerPlugin)("post-status-info-test",{render:()=>(0,e.createElement)(r.PluginPostStatusInfo,null,(0,e.createElement)(f,{...AdditionalAuthors}))})})()})(); 2 2 //# sourceMappingURL=additional-authors.js.map -
additional-authors/trunk/dist/additional-authors.js.map
r2951153 r3012943 1 {"version":3,"file":"additional-authors.js","mappings":" wCASA,IAAIA,EAAuB,EAAQ,KAEnC,SAASC,IAAiB,CAC1B,SAASC,IAA0B,CACnCA,EAAuBC,kBAAoBF,EAE3CG,EAAOC,QAAU,WACf,SAASC,EAAKC,EAAOC,EAAUC,EAAeC,EAAUC,EAAcC,GACpE,GAAIA,IAAWZ,EAAf,CAIA,IAAIa,EAAM,IAAIC,MACZ,mLAKF,MADAD,EAAIE,KAAO,sBACLF,CAPN,CAQF,CAEA,SAASG,IACP,OAAOV,CACT,CAHAA,EAAKW,WAAaX,EAMlB,IAAIY,EAAiB,CACnBC,MAAOb,EACPc,OAAQd,EACRe,KAAMf,EACNgB,KAAMhB,EACNiB,OAAQjB,EACRkB,OAAQlB,EACRmB,OAAQnB,EACRoB,OAAQpB,EAERqB,IAAKrB,EACLsB,QAASZ,EACTa,QAASvB,EACTwB,YAAaxB,EACbyB,WAAYf,EACZgB,KAAM1B,EACN2B,SAAUjB,EACVkB,MAAOlB,EACPmB,UAAWnB,EACXoB,MAAOpB,EACPqB,MAAOrB,EAEPsB,eAAgBpC,EAChBC,kBAAmBF,GAKrB,OAFAiB,EAAeqB,UAAYrB,EAEpBA,CACT,C,gBC/CEd,EAAOC,QAAU,EAAQ,IAAR,E,uBCNnBD,EAAOC,QAFoB,8C,gBCT3BD,EAAOC,QAAQ,SAASmC,GAAG,IAAIC,EAAE,CAAC,EAAE,SAASC,EAAEC,GAAG,GAAGF,EAAEE,GAAG,OAA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gB,EAAZ,EA0BgCxB,CAAiBF,EAAOgC,GAChD/B,WAAY,IAxBJgB,KAChBP,EAAYD,EAASxC,QAAOmE,GAAOlB,SAASkB,KAASlB,SAASD,KAA9D,EAuBwBhB,CAAWgB,GAC3BV,cAAc,OArB1B,GC1BJ8B,EAAAA,EAAAA,gBAAgB,wBAAyB,CAAEC,OARX,KAC5B,mBAAC,EAAAC,qBAAD,MACI,mBAAC,EACOC,qB","sources":["webpack://@palasthotel/additional-authors/./node_modules/prop-types/factoryWithThrowingShims.js","webpack://@palasthotel/additional-authors/./node_modules/prop-types/index.js","webpack://@palasthotel/additional-authors/./node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack://@palasthotel/additional-authors/./node_modules/use-click-outside/dist/index.js","webpack://@palasthotel/additional-authors/external window \"React\"","webpack://@palasthotel/additional-authors/webpack/bootstrap","webpack://@palasthotel/additional-authors/webpack/runtime/compat get default export","webpack://@palasthotel/additional-authors/webpack/runtime/define property getters","webpack://@palasthotel/additional-authors/webpack/runtime/hasOwnProperty shorthand","webpack://@palasthotel/additional-authors/external window [\"wp\",\"element\"]","webpack://@palasthotel/additional-authors/external window [\"wp\",\"plugins\"]","webpack://@palasthotel/additional-authors/external window [\"wp\",\"editPost\"]","webpack://@palasthotel/additional-authors/./node_modules/@babel/runtime/helpers/esm/extends.js","webpack://@palasthotel/additional-authors/external window [\"wp\",\"components\"]","webpack://@palasthotel/additional-authors/./src/gutenberg/Search.js","webpack://@palasthotel/additional-authors/./src/hooks/use-utils.js","webpack://@palasthotel/additional-authors/external window [\"wp\",\"data\"]","webpack://@palasthotel/additional-authors/./src/hooks/use-post.js","webpack://@palasthotel/additional-authors/./src/gutenberg/Author.js","webpack://@palasthotel/additional-authors/./src/gutenberg/Plugin.js","webpack://@palasthotel/additional-authors/./src/gutenberg.js"],"sourcesContent":["/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","module.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,\"a\",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p=\"\",r(r.s=1)}([function(e,t){e.exports=require(\"react\")},function(e,t,r){\"use strict\";r.r(t);var n=r(0);t.default=function(e,t,r){void 0===r&&(r=\"click\");var o=Object(n.useRef)(t);Object(n.useEffect)((function(){o.current=t})),Object(n.useEffect)((function(){var t=function(t){e&&e.current&&(t.target.shadowRoot?t.target.shadowRoot.contains(e.current)||o.current(t):e.current.contains(t.target)||o.current(t))};return document.addEventListener(r,t),document.addEventListener(\"touchstart\",t),function(){document.removeEventListener(r,t),document.removeEventListener(\"touchstart\",t)}}))}}]);","module.exports = window[\"React\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"element\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"plugins\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"editPost\"];","export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"components\"];","import {BaseControl, Popover, Spinner, TextControl} from \"@wordpress/components\";\nimport {useEffect, useState, useRef} from \"@wordpress/element\";\nimport { useEscapeKey } from \"../hooks/use-utils.js\";\nimport './Search.css'\nimport useClickOutside from \"use-click-outside\";\n\nconst SearchResult = ({display_name, onClick})=>{\n return <div\n className=\"additional-authors-author\"\n onClick={onClick}\n >\n {display_name}\n </div>\n}\n\nconst Search = ({i18n, users, onFound})=>{\n\n const [state, setState] = useState(\"\")\n const [isVisible, setIsVisible] = useState(false);\n const [results, setResults] = useState([]);\n\n const ref = useRef();\n useClickOutside(ref, ()=>{\n setIsVisible(false);\n });\n\n useEffect(()=>{\n setResults(users.filter(u=>{\n return state === \"\" || u.display_name.toLowerCase().includes(state.toLowerCase());\n }));\n }, [state, users]);\n\n\n useEscapeKey(()=>{\n setIsVisible(false)\n }, [isVisible], isVisible)\n\n return <BaseControl className=\"additional-authors--search-author\">\n <div ref={ref}>\n <div className=\"additional-authors--search-authors__input-wrapper\">\n <TextControl\n label={i18n.label}\n value={state}\n onChange={(value)=>{\n setIsVisible(true)\n setState(value);\n }}\n onFocus={()=>setIsVisible(true)}\n />\n </div>\n\n { isVisible ? (\n <Popover\n focusOnMount={false}\n position=\"bottom center\"\n >\n {results.length > 0 ?\n results.map(user=> <SearchResult\n key={user.ID}\n {...user}\n onClick={()=>{\n setIsVisible(false);\n onFound(user);\n }}\n />\n )\n :\n <p className=\"additional-authors--search-author__no-results\">{i18n.search_404}</p>\n }\n </Popover>\n ) : null}\n </div>\n </BaseControl>\n}\n\nexport default Search","import { useEffect, useState } from \"@wordpress/element\";\n\nexport const useDebounce = (value, delay) => {\n const [debouncedValue, setDebouncedValue] = useState(value);\n useEffect(() => {\n const handler = setTimeout(() => {\n setDebouncedValue(value);\n }, delay);\n return () => {\n clearTimeout(handler);\n };\n }, [value, delay]);\n return debouncedValue;\n}\n\nexport const useEscapeKey = (callback, dependencies = [], enabled = true)=>{\n\n useEffect(()=>{\n\n if(!enabled) return;\n\n const onKeyDown = ({key})=>{\n if(key === \"Escape\") callback();\n }\n window.addEventListener('keydown', onKeyDown);\n return ()=>{\n window.removeEventListener('keydown', onKeyDown);\n }\n }, dependencies)\n}","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"data\"];","import {useDispatch, useSelect} from '@wordpress/data';\nimport {useEffect} from \"@wordpress/element\";\n\n\nexport const usePost = ()=> useSelect(select => select(\"core/editor\").getCurrentPost(), undefined);\n\nexport const useMainAuthor = ()=>{\n const author = useSelect(select => select(\"core/editor\").getCurrentPost().author);\n const authorEdit = useSelect(select => select(\"core/editor\").getPostEdits().author);\n return authorEdit || author;\n}\n\nexport const useAdditionalAuthors = ()=>{\n\n const mainAuthor = useMainAuthor();\n const authors = useSelect(select => select(\"core/editor\").getCurrentPost().additional_authors);\n const authorsEdited = useSelect(select => select(\"core/editor\").getPostEdits().additional_authors);\n const {editPost} = useDispatch(\"core/editor\");\n\n const additionalAuthors = (authorsEdited || authors).filter(id => parseInt(mainAuthor) !== parseInt(id));\n\n useEffect(()=>{\n if(additionalAuthors.includes(mainAuthor+\"\") || additionalAuthors.includes(parseInt(mainAuthor))){\n editPost(additionalAuthors.filter(id=> parseInt(id) !== parseInt(mainAuthor)));\n }\n }, [mainAuthor, additionalAuthors]);\n\n return [\n additionalAuthors,\n (userIds)=>{\n editPost({\n additional_authors: [mainAuthor, ...userIds],\n });\n }\n ]\n}","import PropTypes from 'prop-types';\nimport \"./Author.css\";\n\nconst Delete = ({onClick}) => {\n\treturn (\n\t\t<span\n\t\t\tclassName=\"author-item__delete\"\n\t\t\tonClick={onClick}\n\t\t>\n\t\t\t×\n\t\t</span>\n\t)\n}\n\nconst ProfileLink = ({author}) => {\n\tconst {ID,display_name} = author;\n\tif(ID > 0){\n\t\treturn <a href={`/wp-admin/user-edit.php?user_id=${ID}`} target=\"_blank\">{display_name}</a>\n\t}\n\treturn display_name\n}\n\nconst Author = ({author, index, onUnselect, onChangePosition})=>{\n\n\treturn (\n\t\t<div\n\t\t\tclassName={`author-item ${(author.ID < 0)?\"is-new-author\":\"\"}`}\n\t\t>\n\t\t\t\t<span className=\"autor-item__name\">\n\t\t\t\t\t<ProfileLink author={author} />\n\t\t\t\t\t<span className=\"author-item__nicename\">{author.user_nicename}</span>\n\t\t\t\t</span>\n\n\t\t\t<Delete onClick={onUnselect} />\n\n\t\t\t<span\n\t\t\t\tclassName=\"author-item__move author-item__up\"\n\t\t\t\tonClick={()=>onChangePosition(index-1)}\n\t\t\t>\n\t\t\t\t\t▲\n\t\t\t\t</span>\n\t\t\t<span\n\t\t\t\tclassName=\"author-item__move author-item__down\"\n\t\t\t\tonClick={()=>onChangePosition(index+1)}\n\t\t\t>\n\t\t\t\t\t▼\n\t\t\t</span>\n\t\t</div>\n\t)\n\n}\n\n/**\n * property defaults\n */\nAuthor.defaultProps = {\n\tauthor: {\n\t\tID: -1,\n\t\tdisplay_name: \"\",\n\t\tuser_login: \"\",\n\t},\n\tclassName: \"\",\n};\n\n/**\n * define property types\n */\nAuthor.propTypes = {\n\tauthor: PropTypes.object.isRequired,\n\tindex: PropTypes.number.isRequired,\n\tonUnselect: PropTypes.func.isRequired,\n\tonChangePosition: PropTypes.func.isRequired,\n\tisMainAuthor: PropTypes.bool.isRequired,\n};\n\n/**\n * export component to public\n */\nexport default Author;","import Search from \"./Search\";\nimport {useAdditionalAuthors, useMainAuthor} from \"../hooks/use-post\";\nimport Author from \"./Author\";\n\nconst Plugin = (props)=>{\n const {\n users,\n i18n,\n } = props;\n\n const mainAuthor = useMainAuthor();\n const [selected, setSelected] = useAdditionalAuthors();\n\n const onSelectSearchItem = (user)=>{\n const newSelection = [...new Set([...selected, user.ID])];\n setSelected(newSelection);\n document.dispatchEvent(\n new CustomEvent(\n \"onAdditionalAuthorsChange\",\n {\n detail: newSelection.map( id=> users.find( u=> parseInt(u.ID) === parseInt(id) ) )\n }\n )\n );\n }\n\n const onChangePosition = (from, to) => {\n const userIdFrom = selected[from];\n const userIdTo = selected[to];\n const newSelection = [...selected]\n newSelection[from] = userIdTo;\n newSelection[to] = userIdFrom;\n setSelected(newSelection);\n }\n\n const onUnselect = (id)=>{\n setSelected(selected.filter(_id => parseInt(_id) !== parseInt(id)))\n }\n\n return <div style={{marginBottom: 20}}>\n\n <Search\n i18n={i18n}\n users={users.filter(u => {\n const notSelected = !selected.includes(u.ID+\"\") && !selected.includes( parseInt(u.ID));\n if(!notSelected) console.debug(u.ID, notSelected);\n return notSelected && parseInt(u.ID) !== parseInt(mainAuthor);\n })}\n onFound={onSelectSearchItem}\n />\n <div>\n {selected\n .filter(id => parseInt(mainAuthor) !== parseInt(id))\n .map((id, index)=>{\n return <Author\n key={id}\n author={users.find(u=> parseInt(u.ID) === parseInt(id))}\n index={index}\n onChangePosition={(to)=>onChangePosition(index, to)}\n onUnselect={()=>onUnselect(id)}\n isMainAuthor={false}\n />\n })}\n </div>\n </div>;\n}\n\nexport default Plugin;","import { registerPlugin } from '@wordpress/plugins';\nimport { PluginPostStatusInfo } from '@wordpress/edit-post';\nimport Plugin from \"./gutenberg/Plugin.js\";\n\n\nconst AdditionalAuthorsPlugin = () => (\n <PluginPostStatusInfo>\n <Plugin\n {...AdditionalAuthors}\n />\n </PluginPostStatusInfo>\n);\n\nregisterPlugin( 'post-status-info-test', { render: AdditionalAuthorsPlugin } );\n"],"names":["ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","module","exports","shim","props","propName","componentName","location","propFullName","secret","err","Error","name","getShim","isRequired","ReactPropTypes","array","bigint","bool","func","number","object","string","symbol","any","arrayOf","element","elementType","instanceOf","node","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","PropTypes","e","t","r","n","o","i","l","call","m","c","d","Object","defineProperty","enumerable","get","Symbol","toStringTag","value","__esModule","create","bind","default","prototype","hasOwnProperty","p","s","useRef","useEffect","current","target","shadowRoot","contains","document","addEventListener","removeEventListener","window","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","getter","a","definition","key","obj","prop","_extends","assign","arguments","length","source","apply","this","SearchResult","display_name","onClick","className","i18n","users","onFound","state","setState","useState","isVisible","setIsVisible","results","setResults","ref","useClickOutside","filter","u","toLowerCase","includes","callback","dependencies","enabled","onKeyDown","useEscapeKey","BaseControl","TextControl","label","onChange","onFocus","Popover","focusOnMount","position","map","user","ID","search_404","useMainAuthor","author","useSelect","select","getCurrentPost","getPostEdits","Delete","ProfileLink","href","Author","index","onUnselect","onChangePosition","user_nicename","defaultProps","user_login","propTypes","isMainAuthor","mainAuthor","selected","setSelected","authors","additional_authors","authorsEdited","editPost","useDispatch","additionalAuthors","id","parseInt","userIds","useAdditionalAuthors","style","marginBottom","notSelected","console","debug","newSelection","Set","dispatchEvent","CustomEvent","detail","find","to","from","userIdFrom","userIdTo","_id","registerPlugin","render","PluginPostStatusInfo","AdditionalAuthors"],"sourceRoot":""}1 {"version":3,"file":"additional-authors.js","mappings":"uCASA,IAAIA,EAAuB,EAAQ,KAEnC,SAASC,IAAiB,CAC1B,SAASC,IAA0B,CACnCA,EAAuBC,kBAAoBF,EAE3CG,EAAOC,QAAU,WACf,SAASC,EAAKC,EAAOC,EAAUC,EAAeC,EAAUC,EAAcC,GACpE,GAAIA,IAAWZ,EAAf,CAIA,IAAIa,EAAM,IAAIC,MACZ,mLAKF,MADAD,EAAIE,KAAO,sBACLF,CAPN,CAQF,CAEA,SAASG,IACP,OAAOV,CACT,CAHAA,EAAKW,WAAaX,EAMlB,IAAIY,EAAiB,CACnBC,MAAOb,EACPc,OAAQd,EACRe,KAAMf,EACNgB,KAAMhB,EACNiB,OAAQjB,EACRkB,OAAQlB,EACRmB,OAAQnB,EACRoB,OAAQpB,EAERqB,IAAKrB,EACLsB,QAASZ,EACTa,QAASvB,EACTwB,YAAaxB,EACbyB,WAAYf,EACZgB,KAAM1B,EACN2B,SAAUjB,EACVkB,MAAOlB,EACPmB,UAAWnB,EACXoB,MAAOpB,EACPqB,MAAOrB,EAEPsB,eAAgBpC,EAChBC,kBAAmBF,GAKrB,OAFAiB,EAAeqB,UAAYrB,EAEpBA,CACT,C,gBC/CEd,EAAOC,QAAU,EAAQ,GAAR,E,uBCNnBD,EAAOC,QAFoB,8C,GCRvBmC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAatC,QAGrB,IAAID,EAASoC,EAAyBE,GAAY,CAGjDrC,Q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AAK,EAuB3CjB,CAAWiB,GAC3BX,cAAc,OAIpB,GCpDV+B,EAAAA,EAAAA,gBAAgB,wBAAyB,CAAEC,OARXC,KAC5B1F,EAAAA,EAAAA,eAAC2F,EAAAA,qBAAoB,MACjB3F,EAAAA,EAAAA,eAAC4F,EAAM,IACCC,sB","sources":["webpack://@palasthotel/additional-authors/./node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js","webpack://@palasthotel/additional-authors/./node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack://@palasthotel/additional-authors/webpack/bootstrap","webpack://@palasthotel/additional-authors/webpack/runtime/compat get default export","webpack://@palasthotel/additional-authors/webpack/runtime/define property getters","webpack://@palasthotel/additional-authors/webpack/runtime/hasOwnProperty shorthand","webpack://@palasthotel/additional-authors/external window \"React\"","webpack://@palasthotel/additional-authors/external window [\"wp\",\"plugins\"]","webpack://@palasthotel/additional-authors/external window [\"wp\",\"editPost\"]","webpack://@palasthotel/additional-authors/external window [\"wp\",\"components\"]","webpack://@palasthotel/additional-authors/external window [\"wp\",\"element\"]","webpack://@palasthotel/additional-authors/./src/gutenberg/Search.js","webpack://@palasthotel/additional-authors/./src/hooks/use-utils.js","webpack://@palasthotel/additional-authors/external window [\"wp\",\"data\"]","webpack://@palasthotel/additional-authors/./src/hooks/use-post.js","webpack://@palasthotel/additional-authors/./src/gutenberg/Author.js","webpack://@palasthotel/additional-authors/./src/gutenberg/Plugin.js","webpack://@palasthotel/additional-authors/./src/gutenberg.js"],"sourcesContent":["/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"React\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"plugins\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"editPost\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"components\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"element\"];","import {BaseControl, Popover, Spinner, TextControl} from \"@wordpress/components\";\nimport {useEffect, useState, useRef} from \"@wordpress/element\";\nimport { useEscapeKey } from \"../hooks/use-utils.js\";\nimport './Search.css'\n\nconst SearchResult = ({display_name, onClick})=>{\n return <div\n className=\"additional-authors-author\"\n onClick={onClick}\n >\n {display_name}\n </div>\n}\n\nconst Search = ({i18n, users, onFound})=>{\n\n const [state, setState] = useState(\"\")\n const [isVisible, setIsVisible] = useState(false);\n const [results, setResults] = useState([]);\n\n useEffect(()=>{\n setResults(users.filter(u=>{\n return state === \"\" || u.display_name.toLowerCase().includes(state.toLowerCase());\n }));\n }, [state, users]);\n\n\n useEscapeKey(()=>{\n setIsVisible(false)\n }, [isVisible], isVisible)\n\n return <BaseControl className=\"additional-authors--search-author\">\n <div>\n <div className=\"additional-authors--search-authors__input-wrapper\">\n <TextControl\n label={i18n.label}\n value={state}\n onChange={(value)=>{\n setIsVisible(true)\n setState(value);\n }}\n onFocus={()=>setIsVisible(true)}\n />\n </div>\n\n { isVisible ? (\n <Popover\n focusOnMount={false}\n position=\"bottom center\"\n >\n {results.length > 0 ?\n results.map(user=> <SearchResult\n key={user.ID}\n {...user}\n onClick={()=>{\n setIsVisible(false);\n onFound(user);\n }}\n />\n )\n :\n <p className=\"additional-authors--search-author__no-results\">{i18n.search_404}</p>\n }\n </Popover>\n ) : null}\n </div>\n </BaseControl>\n}\n\nexport default Search","import { useEffect, useState } from \"@wordpress/element\";\n\nexport const useDebounce = (value, delay) => {\n const [debouncedValue, setDebouncedValue] = useState(value);\n useEffect(() => {\n const handler = setTimeout(() => {\n setDebouncedValue(value);\n }, delay);\n return () => {\n clearTimeout(handler);\n };\n }, [value, delay]);\n return debouncedValue;\n}\n\nexport const useEscapeKey = (callback, dependencies = [], enabled = true)=>{\n\n useEffect(()=>{\n\n if(!enabled) return;\n\n const onKeyDown = ({key})=>{\n if(key === \"Escape\") callback();\n }\n window.addEventListener('keydown', onKeyDown);\n return ()=>{\n window.removeEventListener('keydown', onKeyDown);\n }\n }, dependencies)\n}","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"data\"];","import {useDispatch, useSelect} from '@wordpress/data';\nimport {useEffect} from \"@wordpress/element\";\n\n\nexport const usePost = ()=> useSelect(select => select(\"core/editor\").getCurrentPost(), undefined);\n\nexport const useMainAuthor = ()=>{\n const author = useSelect(select => select(\"core/editor\").getCurrentPost().author);\n const authorEdit = useSelect(select => select(\"core/editor\").getPostEdits().author);\n return authorEdit || author;\n}\n\nexport const useAdditionalAuthors = ()=>{\n\n const mainAuthor = useMainAuthor();\n const authors = useSelect(select => select(\"core/editor\").getCurrentPost().additional_authors);\n const authorsEdited = useSelect(select => select(\"core/editor\").getPostEdits().additional_authors);\n const {editPost} = useDispatch(\"core/editor\");\n\n const additionalAuthors = (authorsEdited || authors).filter(id => parseInt(mainAuthor) !== parseInt(id));\n\n useEffect(()=>{\n if(additionalAuthors.includes(mainAuthor+\"\") || additionalAuthors.includes(parseInt(mainAuthor))){\n editPost(additionalAuthors.filter(id=> parseInt(id) !== parseInt(mainAuthor)));\n }\n }, [mainAuthor, additionalAuthors]);\n\n return [\n additionalAuthors,\n (userIds)=>{\n editPost({\n additional_authors: [mainAuthor, ...userIds],\n });\n }\n ]\n}","import PropTypes from 'prop-types';\nimport \"./Author.css\";\n\nconst Delete = ({onClick}) => {\n\treturn (\n\t\t<span\n\t\t\tclassName=\"author-item__delete\"\n\t\t\tonClick={onClick}\n\t\t>\n\t\t\t×\n\t\t</span>\n\t)\n}\n\nconst ProfileLink = ({author}) => {\n\tconst {ID,display_name} = author;\n\tif(ID > 0){\n\t\treturn <a href={`/wp-admin/user-edit.php?user_id=${ID}`} target=\"_blank\">{display_name}</a>\n\t}\n\treturn display_name\n}\n\nconst Author = ({author, index, onUnselect, onChangePosition})=>{\n\n\treturn (\n\t\t<div\n\t\t\tclassName={`author-item ${(author.ID < 0)?\"is-new-author\":\"\"}`}\n\t\t>\n\t\t\t\t<span className=\"autor-item__name\">\n\t\t\t\t\t<ProfileLink author={author} />\n\t\t\t\t\t<span className=\"author-item__nicename\">{author.user_nicename}</span>\n\t\t\t\t</span>\n\n\t\t\t<Delete onClick={onUnselect} />\n\n\t\t\t<span\n\t\t\t\tclassName=\"author-item__move author-item__up\"\n\t\t\t\tonClick={()=>onChangePosition(index-1)}\n\t\t\t>\n\t\t\t\t\t▲\n\t\t\t\t</span>\n\t\t\t<span\n\t\t\t\tclassName=\"author-item__move author-item__down\"\n\t\t\t\tonClick={()=>onChangePosition(index+1)}\n\t\t\t>\n\t\t\t\t\t▼\n\t\t\t</span>\n\t\t</div>\n\t)\n\n}\n\n/**\n * property defaults\n */\nAuthor.defaultProps = {\n\tauthor: {\n\t\tID: -1,\n\t\tdisplay_name: \"\",\n\t\tuser_login: \"\",\n\t},\n\tclassName: \"\",\n};\n\n/**\n * define property types\n */\nAuthor.propTypes = {\n\tauthor: PropTypes.object.isRequired,\n\tindex: PropTypes.number.isRequired,\n\tonUnselect: PropTypes.func.isRequired,\n\tonChangePosition: PropTypes.func.isRequired,\n\tisMainAuthor: PropTypes.bool.isRequired,\n};\n\n/**\n * export component to public\n */\nexport default Author;","import Search from \"./Search\";\nimport {useAdditionalAuthors, useMainAuthor} from \"../hooks/use-post\";\nimport Author from \"./Author\";\n\nconst Plugin = (props)=>{\n const {\n users,\n i18n,\n } = props;\n\n const mainAuthor = useMainAuthor();\n const [selected, setSelected] = useAdditionalAuthors();\n\n const onSelectSearchItem = (user)=>{\n const newSelection = [...new Set([...selected, user.ID])];\n setSelected(newSelection);\n document.dispatchEvent(\n new CustomEvent(\n \"onAdditionalAuthorsChange\",\n {\n detail: newSelection.map( id=> users.find( u=> parseInt(u.ID) === parseInt(id) ) )\n }\n )\n );\n }\n\n const onChangePosition = (from, to) => {\n const userIdFrom = selected[from];\n const userIdTo = selected[to];\n const newSelection = [...selected]\n newSelection[from] = userIdTo;\n newSelection[to] = userIdFrom;\n setSelected(newSelection);\n }\n\n const onUnselect = (id)=>{\n setSelected(selected.filter(_id => parseInt(_id) !== parseInt(id)))\n }\n\n return <div style={{marginBottom: 20}}>\n\n <Search\n i18n={i18n}\n users={users.filter(u => {\n const notSelected = !selected.includes(u.ID+\"\") && !selected.includes( parseInt(u.ID));\n if(!notSelected) console.debug(u.ID, notSelected);\n return notSelected && parseInt(u.ID) !== parseInt(mainAuthor);\n })}\n onFound={onSelectSearchItem}\n />\n <div>\n {selected\n .filter(id => parseInt(mainAuthor) !== parseInt(id))\n .map((id, index)=>{\n return <Author\n key={id}\n author={users.find(u=> parseInt(u.ID) === parseInt(id))}\n index={index}\n onChangePosition={(to)=>onChangePosition(index, to)}\n onUnselect={()=>onUnselect(id)}\n isMainAuthor={false}\n />\n })}\n </div>\n </div>;\n}\n\nexport default Plugin;","import { registerPlugin } from '@wordpress/plugins';\nimport { PluginPostStatusInfo } from '@wordpress/edit-post';\nimport Plugin from \"./gutenberg/Plugin.js\";\n\nconst AdditionalAuthorsPlugin = () => (\n <PluginPostStatusInfo>\n <Plugin\n {...AdditionalAuthors}\n />\n </PluginPostStatusInfo>\n);\n\nregisterPlugin( 'post-status-info-test', { render: AdditionalAuthorsPlugin } );\n"],"names":["ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","module","exports","shim","props","propName","componentName","location","propFullName","secret","err","Error","name","getShim","isRequired","ReactPropTypes","array","bigint","bool","func","number","object","string","symbol","any","arrayOf","element","elementType","instanceOf","node","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","PropTypes","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","window","SearchResult","display_name","onClick","createElement","className","Search","i18n","users","onFound","state","setState","useState","isVisible","setIsVisible","results","setResults","useEffect","filter","u","toLowerCase","includes","useEscapeKey","callback","dependencies","enabled","onKeyDown","addEventListener","removeEventListener","BaseControl","TextControl","label","value","onChange","onFocus","Popover","focusOnMount","position","length","map","user","ID","search_404","useMainAuthor","author","useSelect","select","getCurrentPost","getPostEdits","Delete","ProfileLink","href","target","Author","index","onUnselect","onChangePosition","user_nicename","defaultProps","user_login","propTypes","isMainAuthor","mainAuthor","selected","setSelected","useAdditionalAuthors","authors","additional_authors","authorsEdited","editPost","useDispatch","additionalAuthors","id","parseInt","userIds","style","marginBottom","notSelected","console","debug","newSelection","Set","document","dispatchEvent","CustomEvent","detail","find","to","from","userIdFrom","userIdTo","_id","registerPlugin","render","AdditionalAuthorsPlugin","PluginPostStatusInfo","Plugin","AdditionalAuthors"],"sourceRoot":""} -
additional-authors/trunk/dist/users-table.js.map
r2951153 r3012943 1 {"version":3,"file":"users-table.js","mappings":"mBA GAA,OAAOC,SAASC,iBAAiB,oBAAoB,KACjD,MAAMC,EAAQF,SAASG,cAAc,wBAC/BC,EAAOF,EAAMG,iBAAiB,mBAC9BC,EAAMC,MAAMC,KAAKJ,GAAMK,KAAIC,GACtBA,EAAIC,aAAa,MAAMC,QAAQ,QAAS,MAEnD,IAAKN,EAAIO,OAAQ,OAEjB,MAAMC,EAAOZ,EAAMC,cAAc,UAC3BY,EAAUf,SAASgB,cAAc,QACvCD,EAAQE,UAAUC,IAAI,UAAW,aACjCH,EAAQI,MAAMC,SAAW,WACzBL,EAAQI,MAAME,UAAY,yBAC1BP,EAAKQ,QAAQP,GAEbQ,MACIxB,OAAOyB,kBAAkBC,QAAQ,mDAAqDnB,EAAIoB,KAAK,MACjGC,MACEC,GAAYA,EAASC,SACvBF,MACGE,IACG,IAAK,MAAMC,KAAUD,EAAM,CACvB,MAAME,EAAO7B,EAAMC,cAAc,eAAe2B,EAAO,0BACvD,GAAGC,EAAK5B,cAAc,KAClB4B,EAAK5B,cAAc,wBAAwB6B,YAAcC,OAAOJ,EAAKC,SAClE,GAAGD,EAAKC,GAAU,EAAE,CACvB,MAAMI,EAAIlC,SAASgB,cAAc,KACjCkB,EAAEC,KAAOpC,OAAOyB,kBAAkBY,SAAS,WAAWN,EACtDI,EAAEG,UAAYJ,OAAOJ,EAAKC,IAC1BC,EAAKO,UAAY,GACjBP,EAAKQ,OAAOL,EACf,CACJ,KAEPM,SACE,KACIC,YAAW,KACP1B,EAAQ2B,QAAR,GACD,IAFH,GArBR,G","sources":["webpack://@palasthotel/additional-authors/./src/users-table.ts"],"sourcesContent":["// @ts-ignore\n// @ts-ignore\n\nwindow.document.addEventListener(\"DOMContentLoaded\", () => {\n const table = document.querySelector(\".wp-list-table.users\")\n const rows = table.querySelectorAll(\"tr[id^='user-']\");\n const ids = Array.from(rows).map(row => {\n return row.getAttribute(\"id\").replace(\"user-\", \"\");\n });\n if (!ids.length) return;\n\n const head = table.querySelector(\"#posts\");\n const spinner = document.createElement(\"span\");\n spinner.classList.add(\"spinner\", \"is-active\");\n spinner.style.position = \"absolute\";\n spinner.style.transform = \"translate(-34px, -4px)\";\n head.prepend(spinner);\n\n fetch(\n window.AdditionalAuthors.ajaxUrl+\"?action=additional_authors_count_posts&user_ids=\" + ids.join(\",\")\n ).then(\n response => response.json()\n ).then(\n (json: Record<string, number>) => {\n for (const userId in json) {\n const item = table.querySelector(\"tr[id='user-\"+userId+\"'] td.column-posts.num\");\n if(item.querySelector(\"a\")){\n item.querySelector(\"a > span:first-child\").textContent = String(json[userId]);\n } else if(json[userId] > 0){\n const a = document.createElement(\"a\");\n a.href = window.AdditionalAuthors.postsUrl+\"?author=\"+userId;\n a.innerText = String(json[userId]);\n item.innerHTML = \"\";\n item.append(a);\n }\n }\n }\n ).finally(\n ()=> {\n setTimeout(()=>{\n spinner.remove();\n }, 1000)\n }\n );\n\n});\n\nexport {}\n\ndeclare global {\n interface Window {\n AdditionalAuthors: {\n postsUrl: string\n ajaxUrl: string\n }\n }\n}"],"names":["window","document","addEventListener","table","querySelector","rows","querySelectorAll","ids","Array","from","map","row","getAttribute","replace","length","head","spinner","createElement","classList","add","style","position","transform","prepend","fetch","AdditionalAuthors","ajaxUrl","join","then","response","json","userId","item","textContent","String","a","href","postsUrl","innerText","innerHTML","append","finally","setTimeout","remove"],"sourceRoot":""}1 {"version":3,"file":"users-table.js","mappings":"mBAAAA,OAAOC,SAASC,iBAAiB,oBAAoB,KACjD,MAAMC,EAAQF,SAASG,cAAc,wBAC/BC,EAAOF,EAAMG,iBAAiB,mBAC9BC,EAAMC,MAAMC,KAAKJ,GAAMK,KAAIC,GACtBA,EAAIC,aAAa,MAAMC,QAAQ,QAAS,MAEnD,IAAKN,EAAIO,OAAQ,OAEjB,MAAMC,EAAOZ,EAAMC,cAAc,UAC3BY,EAAUf,SAASgB,cAAc,QACvCD,EAAQE,UAAUC,IAAI,UAAW,aACjCH,EAAQI,MAAMC,SAAW,WACzBL,EAAQI,MAAME,UAAY,yBAC1BP,EAAKQ,QAAQP,GAEbQ,MACIxB,OAAOyB,kBAAkBC,QAAQ,mDAAqDnB,EAAIoB,KAAK,MACjGC,MACEC,GAAYA,EAASC,SACvBF,MACGE,IACG,IAAK,MAAMC,KAAUD,EAAM,CACvB,MAAME,EAAO7B,EAAMC,cAAc,eAAe2B,EAAO,0BACvD,GAAGC,EAAK5B,cAAc,KAClB4B,EAAK5B,cAAc,wBAAwB6B,YAAcC,OAAOJ,EAAKC,SAClE,GAAGD,EAAKC,GAAU,EAAE,CACvB,MAAMI,EAAIlC,SAASgB,cAAc,KACjCkB,EAAEC,KAAOpC,OAAOyB,kBAAkBY,SAAS,WAAWN,EACtDI,EAAEG,UAAYJ,OAAOJ,EAAKC,IAC1BC,EAAKO,UAAY,GACjBP,EAAKQ,OAAOL,EAChB,CACJ,KAENM,SACE,KACIC,YAAW,KACP1B,EAAQ2B,QAAQ,GACjB,IAAK,GAEf,G","sources":["webpack://@palasthotel/additional-authors/./src/users-table.ts"],"sourcesContent":["window.document.addEventListener(\"DOMContentLoaded\", () => {\n const table = document.querySelector(\".wp-list-table.users\")\n const rows = table.querySelectorAll(\"tr[id^='user-']\");\n const ids = Array.from(rows).map(row => {\n return row.getAttribute(\"id\").replace(\"user-\", \"\");\n });\n if (!ids.length) return;\n\n const head = table.querySelector(\"#posts\");\n const spinner = document.createElement(\"span\");\n spinner.classList.add(\"spinner\", \"is-active\");\n spinner.style.position = \"absolute\";\n spinner.style.transform = \"translate(-34px, -4px)\";\n head.prepend(spinner);\n\n fetch(\n window.AdditionalAuthors.ajaxUrl+\"?action=additional_authors_count_posts&user_ids=\" + ids.join(\",\")\n ).then(\n response => response.json()\n ).then(\n (json: Record<string, number>) => {\n for (const userId in json) {\n const item = table.querySelector(\"tr[id='user-\"+userId+\"'] td.column-posts.num\");\n if(item.querySelector(\"a\")){\n item.querySelector(\"a > span:first-child\").textContent = String(json[userId]);\n } else if(json[userId] > 0){\n const a = document.createElement(\"a\");\n a.href = window.AdditionalAuthors.postsUrl+\"?author=\"+userId;\n a.innerText = String(json[userId]);\n item.innerHTML = \"\";\n item.append(a);\n }\n }\n }\n ).finally(\n ()=> {\n setTimeout(()=>{\n spinner.remove();\n }, 1000)\n }\n );\n\n});\n\nexport {}\n\ndeclare global {\n interface Window {\n AdditionalAuthors: {\n postsUrl: string\n ajaxUrl: string\n }\n }\n}\n"],"names":["window","document","addEventListener","table","querySelector","rows","querySelectorAll","ids","Array","from","map","row","getAttribute","replace","length","head","spinner","createElement","classList","add","style","position","transform","prepend","fetch","AdditionalAuthors","ajaxUrl","join","then","response","json","userId","item","textContent","String","a","href","postsUrl","innerText","innerHTML","append","finally","setTimeout","remove"],"sourceRoot":""} -
additional-authors/trunk/readme.txt
r2951250 r3012943 4 4 Tags: author, meta fields 5 5 Requires at least: 4.0 6 Tested up to: 6. 37 Stable tag: 1.3. 46 Tested up to: 6.4.2 7 Stable tag: 1.3.5 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl … … 29 29 == Changelog == 30 30 31 = 1.3.5 = 32 * Fix: PHP 8.2 warnings 33 * Fix: double slash in asset urls 34 * Packages update 35 31 36 = 1.3.3 = 32 * Fix: PHP 8.2 warnings33 37 * Packages update 34 38 -
additional-authors/trunk/vendor/composer/ClassLoader.php
r2926517 r3012943 46 46 private static $includeFile; 47 47 48 /** @var ?string*/48 /** @var string|null */ 49 49 private $vendorDir; 50 50 51 51 // PSR-4 52 52 /** 53 * @var array[] 54 * @psalm-var array<string, array<string, int>> 53 * @var array<string, array<string, int>> 55 54 */ 56 55 private $prefixLengthsPsr4 = array(); 57 56 /** 58 * @var array[] 59 * @psalm-var array<string, array<int, string>> 57 * @var array<string, list<string>> 60 58 */ 61 59 private $prefixDirsPsr4 = array(); 62 60 /** 63 * @var array[] 64 * @psalm-var array<string, string> 61 * @var list<string> 65 62 */ 66 63 private $fallbackDirsPsr4 = array(); … … 68 65 // PSR-0 69 66 /** 70 * @var array[] 71 * @psalm-var array<string, array<string, string[]>> 67 * List of PSR-0 prefixes 68 * 69 * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2'))) 70 * 71 * @var array<string, array<string, list<string>>> 72 72 */ 73 73 private $prefixesPsr0 = array(); 74 74 /** 75 * @var array[] 76 * @psalm-var array<string, string> 75 * @var list<string> 77 76 */ 78 77 private $fallbackDirsPsr0 = array(); … … 82 81 83 82 /** 84 * @var string[] 85 * @psalm-var array<string, string> 83 * @var array<string, string> 86 84 */ 87 85 private $classMap = array(); … … 91 89 92 90 /** 93 * @var bool[] 94 * @psalm-var array<string, bool> 91 * @var array<string, bool> 95 92 */ 96 93 private $missingClasses = array(); 97 94 98 /** @var ?string*/95 /** @var string|null */ 99 96 private $apcuPrefix; 100 97 101 98 /** 102 * @var self[]99 * @var array<string, self> 103 100 */ 104 101 private static $registeredLoaders = array(); 105 102 106 103 /** 107 * @param ?string$vendorDir104 * @param string|null $vendorDir 108 105 */ 109 106 public function __construct($vendorDir = null) … … 114 111 115 112 /** 116 * @return string[]113 * @return array<string, list<string>> 117 114 */ 118 115 public function getPrefixes() … … 126 123 127 124 /** 128 * @return array[] 129 * @psalm-return array<string, array<int, string>> 125 * @return array<string, list<string>> 130 126 */ 131 127 public function getPrefixesPsr4() … … 135 131 136 132 /** 137 * @return array[] 138 * @psalm-return array<string, string> 133 * @return list<string> 139 134 */ 140 135 public function getFallbackDirs() … … 144 139 145 140 /** 146 * @return array[] 147 * @psalm-return array<string, string> 141 * @return list<string> 148 142 */ 149 143 public function getFallbackDirsPsr4() … … 153 147 154 148 /** 155 * @return string[] Array of classname => path 156 * @psalm-return array<string, string> 149 * @return array<string, string> Array of classname => path 157 150 */ 158 151 public function getClassMap() … … 162 155 163 156 /** 164 * @param string[] $classMap Class to filename map 165 * @psalm-param array<string, string> $classMap 157 * @param array<string, string> $classMap Class to filename map 166 158 * 167 159 * @return void … … 180 172 * appending or prepending to the ones previously set for this prefix. 181 173 * 182 * @param string $prefix The prefix183 * @param string[]|string $paths The PSR-0 root directories184 * @param bool $prepend Whether to prepend the directories174 * @param string $prefix The prefix 175 * @param list<string>|string $paths The PSR-0 root directories 176 * @param bool $prepend Whether to prepend the directories 185 177 * 186 178 * @return void … … 188 180 public function add($prefix, $paths, $prepend = false) 189 181 { 182 $paths = (array) $paths; 190 183 if (!$prefix) { 191 184 if ($prepend) { 192 185 $this->fallbackDirsPsr0 = array_merge( 193 (array)$paths,186 $paths, 194 187 $this->fallbackDirsPsr0 195 188 ); … … 197 190 $this->fallbackDirsPsr0 = array_merge( 198 191 $this->fallbackDirsPsr0, 199 (array)$paths192 $paths 200 193 ); 201 194 } … … 206 199 $first = $prefix[0]; 207 200 if (!isset($this->prefixesPsr0[$first][$prefix])) { 208 $this->prefixesPsr0[$first][$prefix] = (array)$paths;201 $this->prefixesPsr0[$first][$prefix] = $paths; 209 202 210 203 return; … … 212 205 if ($prepend) { 213 206 $this->prefixesPsr0[$first][$prefix] = array_merge( 214 (array)$paths,207 $paths, 215 208 $this->prefixesPsr0[$first][$prefix] 216 209 ); … … 218 211 $this->prefixesPsr0[$first][$prefix] = array_merge( 219 212 $this->prefixesPsr0[$first][$prefix], 220 (array)$paths213 $paths 221 214 ); 222 215 } … … 227 220 * appending or prepending to the ones previously set for this namespace. 228 221 * 229 * @param string $prefix The prefix/namespace, with trailing '\\'230 * @param string[]|string $paths The PSR-4 base directories231 * @param bool $prepend Whether to prepend the directories222 * @param string $prefix The prefix/namespace, with trailing '\\' 223 * @param list<string>|string $paths The PSR-4 base directories 224 * @param bool $prepend Whether to prepend the directories 232 225 * 233 226 * @throws \InvalidArgumentException … … 237 230 public function addPsr4($prefix, $paths, $prepend = false) 238 231 { 232 $paths = (array) $paths; 239 233 if (!$prefix) { 240 234 // Register directories for the root namespace. 241 235 if ($prepend) { 242 236 $this->fallbackDirsPsr4 = array_merge( 243 (array)$paths,237 $paths, 244 238 $this->fallbackDirsPsr4 245 239 ); … … 247 241 $this->fallbackDirsPsr4 = array_merge( 248 242 $this->fallbackDirsPsr4, 249 (array)$paths243 $paths 250 244 ); 251 245 } … … 257 251 } 258 252 $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; 259 $this->prefixDirsPsr4[$prefix] = (array)$paths;253 $this->prefixDirsPsr4[$prefix] = $paths; 260 254 } elseif ($prepend) { 261 255 // Prepend directories for an already registered namespace. 262 256 $this->prefixDirsPsr4[$prefix] = array_merge( 263 (array)$paths,257 $paths, 264 258 $this->prefixDirsPsr4[$prefix] 265 259 ); … … 268 262 $this->prefixDirsPsr4[$prefix] = array_merge( 269 263 $this->prefixDirsPsr4[$prefix], 270 (array)$paths264 $paths 271 265 ); 272 266 } … … 277 271 * replacing any others previously set for this prefix. 278 272 * 279 * @param string $prefix The prefix280 * @param string[]|string $paths The PSR-0 base directories273 * @param string $prefix The prefix 274 * @param list<string>|string $paths The PSR-0 base directories 281 275 * 282 276 * @return void … … 295 289 * replacing any others previously set for this namespace. 296 290 * 297 * @param string $prefix The prefix/namespace, with trailing '\\'298 * @param string[]|string $paths The PSR-4 base directories291 * @param string $prefix The prefix/namespace, with trailing '\\' 292 * @param list<string>|string $paths The PSR-4 base directories 299 293 * 300 294 * @throws \InvalidArgumentException … … 430 424 { 431 425 if ($file = $this->findFile($class)) { 432 (self::$includeFile)($file); 426 $includeFile = self::$includeFile; 427 $includeFile($file); 433 428 434 429 return true; … … 481 476 482 477 /** 483 * Returns the currently registered loaders indexed by their corresponding vendor directories.484 * 485 * @return self[]478 * Returns the currently registered loaders keyed by their corresponding vendor directories. 479 * 480 * @return array<string, self> 486 481 */ 487 482 public static function getRegisteredLoaders() … … 561 556 } 562 557 563 private static function initializeIncludeClosure(): void 558 /** 559 * @return void 560 */ 561 private static function initializeIncludeClosure() 564 562 { 565 563 if (self::$includeFile !== null) { … … 575 573 * @return void 576 574 */ 577 self::$includeFile = static function($file) {575 self::$includeFile = \Closure::bind(static function($file) { 578 576 include $file; 579 } ;577 }, null, null); 580 578 } 581 579 }
Note: See TracChangeset
for help on using the changeset viewer.