"query"in e),y(e=>e.query?{...e,...re(e.query)}:e),b("context"),b("stableKey")])((e=null,t)=>{const{type:n,page:r,perPage:i,key:s=W}=t;return"RECEIVE_ITEMS"!==n?e:function(e,t,n,r){if(1===n&&-1===r)return t;const i=(n-1)*r,s=Math.max(e.length,i+t.length),o=new Array(s);for(let n=0;n=i&&n{var s;const o=i[r];return t[o]=function(e,t){if(!e)return t;let n=!1;const r={};for(const i in t)Object(d.isEqual)(e[i],t[i])?r[i]=e[i]:(n=!0,r[i]=t[i]);if(!n)return e;for(const t in e)r.hasOwnProperty(t)||(r[t]=e[t]);return r}(null==e||null===(s=e[n])||void 0===s?void 0:s[o],i),t},{})}}}case"REMOVE_ITEMS":return Object(d.mapValues)(e,e=>Object(d.omit)(e,t.itemIds))}return e},itemIsComplete:function(e={},t){switch(t.type){case"RECEIVE_ITEMS":{const n=ie(t),{query:r,key:i=W}=t,s=r?re(r):{},o=!r||!Array.isArray(s.fields);return{...e,[n]:{...e[n],...t.items.reduce((t,r)=>{var s;const c=r[i];return t[c]=(null==e||null===(s=e[n])||void 0===s?void 0:s[c])||o,t},{})}}}case"REMOVE_ITEMS":return Object(d.mapValues)(e,e=>Object(d.omit)(e,t.itemIds))}return e},queries:(e={},t)=>{switch(t.type){case"RECEIVE_ITEMS":return se(e,t);case"REMOVE_ITEMS":const n=t.itemIds.reduce((e,t)=>(e[t]=!0,e),{});return Object(d.mapValues)(e,e=>Object(d.mapValues)(e,e=>Object(d.filter)(e,e=>!n[e])));default:return e}}});function ce(e,t){const n={...e};let r=n;for(const e of t)r.children={...r.children,[e]:{locks:[],children:{},...r.children[e]}},r=r.children[e];return n}function ue(e,t){let n=e;for(const e of t){const t=n.children[e];if(!t)return null;n=t}return n}function ae({exclusive:e},t){return!(!e||!t.length)||!(e||!t.filter(e=>e.exclusive).length)}const de={requests:[],tree:{locks:[],children:{}}};var le=function(e=de,t){switch(t.type){case"ENQUEUE_LOCK_REQUEST":{const{request:n}=t;return{...e,requests:[n,...e.requests]}}case"GRANT_LOCK_REQUEST":{const{lock:n,request:r}=t,{store:i,path:s}=r,o=[i,...s],c=ce(e.tree,o),u=ue(c,o);return u.locks=[...u.locks,n],{...e,requests:e.requests.filter(e=>e!==r),tree:c}}case"RELEASE_LOCK":{const{lock:n}=t,r=[n.store,...n.path],i=ce(e.tree,r),s=ue(i,r);return s.locks=s.locks.filter(e=>e!==n),{...e,tree:i}}}return e};function fe(e){return Object(d.flowRight)([p(t=>t.name&&t.kind&&t.name===e.name&&t.kind===e.kind),y(t=>({...t,key:e.key||W}))])(Object(u.combineReducers)({queriedData:oe,edits:(e={},t)=>{var n,r;switch(t.type){case"RECEIVE_ITEMS":if("default"!==(null!==(n=null==t||null===(r=t.query)||void 0===r?void 0:r.context)&&void 0!==n?n:"default"))return e;const i={...e};for(const e of t.items){const n=e[t.key],r=i[n];if(!r)continue;const s=Object.keys(r).reduce((n,i)=>(Object(d.isEqual)(r[i],Object(d.get)(e[i],"raw",e[i]))||t.persistedEdits&&Object(d.isEqual)(r[i],t.persistedEdits[i])||(n[i]=r[i]),n),{});Object.keys(s).length?i[n]=s:delete i[n]}return i;case"EDIT_ENTITY_RECORD":const s={...e[t.recordId],...t.edits};return Object.keys(s).forEach(e=>{void 0===s[e]&&delete s[e]}),{...e,[t.recordId]:s}}return e},saving:(e={},t)=>{switch(t.type){case"SAVE_ENTITY_RECORD_START":case"SAVE_ENTITY_RECORD_FINISH":return{...e,[t.recordId]:{pending:"SAVE_ENTITY_RECORD_START"===t.type,error:t.error,isAutosave:t.isAutosave}}}return e},deleting:(e={},t)=>{switch(t.type){case"DELETE_ENTITY_RECORD_START":case"DELETE_ENTITY_RECORD_FINISH":return{...e,[t.recordId]:{pending:"DELETE_ENTITY_RECORD_START"===t.type,error:t.error}}}return e}}))}const pe=[];let ye;pe.offset=0;var be=Object(u.combineReducers)({terms:function(e={},t){switch(t.type){case"RECEIVE_TERMS":return{...e,[t.taxonomy]:t.terms}}return e},users:function(e={byId:{},queries:{}},t){switch(t.type){case"RECEIVE_USER_QUERY":return{byId:{...e.byId,...Object(d.keyBy)(t.users,"id")},queries:{...e.queries,[t.queryID]:Object(d.map)(t.users,e=>e.id)}}}return e},currentTheme:function(e,t){switch(t.type){case"RECEIVE_CURRENT_THEME":return t.currentTheme.stylesheet}return e},currentUser:function(e={},t){switch(t.type){case"RECEIVE_CURRENT_USER":return t.currentUser}return e},taxonomies:function(e=[],t){switch(t.type){case"RECEIVE_TAXONOMIES":return t.taxonomies}return e},themes:function(e={},t){switch(t.type){case"RECEIVE_CURRENT_THEME":return{...e,[t.currentTheme.stylesheet]:t.currentTheme}}return e},themeSupports:function(e={},t){switch(t.type){case"RECEIVE_THEME_SUPPORTS":return{...e,...t.themeSupports}}return e},entities:(e={},t)=>{const n=function(e=Z,t){switch(t.type){case"ADD_ENTITIES":return[...e,...t.entities]}return e}(e.config,t);let r=e.reducer;if(!r||n!==e.config){const e=Object(d.groupBy)(n,"kind");r=Object(u.combineReducers)(Object.entries(e).reduce((e,[t,n])=>{const r=Object(u.combineReducers)(n.reduce((e,t)=>({...e,[t.name]:fe(t)}),{}));return e[t]=r,e},{}))}const i=r(e.data,t);return i===e.data&&n===e.config&&r===e.reducer?e:{reducer:r,data:i,config:n}},undo:function(e=pe,t){switch(t.type){case"EDIT_ENTITY_RECORD":case"CREATE_UNDO_LEVEL":let n="CREATE_UNDO_LEVEL"===t.type;const r=!n&&(t.meta.isUndo||t.meta.isRedo);let i;if(n?t=ye:r||(ye=Object.keys(t.edits).some(e=>!t.transientEdits[e])?t:{...t,edits:{...ye&&ye.edits,...t.edits}}),r){if(i=[...e],i.offset=e.offset+(t.meta.isUndo?-1:1),!e.flattenedUndo)return i;n=!0,t=ye}if(!t.meta.undo)return e;if(!n&&!Object.keys(t.edits).some(e=>!t.transientEdits[e]))return i=[...e],i.flattenedUndo={...e.flattenedUndo,...t.edits},i.offset=e.offset,i;i=i||e.slice(0,e.offset||void 0),i.offset=i.offset||0,i.pop(),n||i.push({kind:t.meta.undo.kind,name:t.meta.undo.name,recordId:t.meta.undo.recordId,edits:{...e.flattenedUndo,...t.meta.undo.edits}});const s=Object.values(t.meta.undo.edits).filter(e=>"function"!=typeof e),o=Object.values(t.edits).filter(e=>"function"!=typeof e);return f()(s,o)||i.push({kind:t.kind,name:t.name,recordId:t.recordId,edits:n?{...e.flattenedUndo,...t.edits}:t.edits}),i}return e},embedPreviews:function(e={},t){switch(t.type){case"RECEIVE_EMBED_PREVIEW":const{url:n,preview:r}=t;return{...e,[n]:r}}return e},userPermissions:function(e={},t){switch(t.type){case"RECEIVE_USER_PERMISSION":return{...e,[t.key]:t.isAllowed}}return e},autosaves:function(e={},t){switch(t.type){case"RECEIVE_AUTOSAVES":const{postId:n,autosaves:r}=t;return{...e,[n]:r}}return e},locks:le}),Ee=n("pPDe");var me=n("FtRg"),he=n.n(me);const _e=new WeakMap;const ve=Object(Ee.a)((e,t={})=>{let n=_e.get(e);if(n){const e=n.get(t);if(void 0!==e)return e}else n=new he.a,_e.set(e,n);const r=function(e,t){var n,r;const{stableKey:i,page:s,perPage:o,include:c,fields:u,context:a}=re(t);let l;if(Array.isArray(c)&&!i?l=c:null!==(n=e.queries)&&void 0!==n&&null!==(r=n[a])&&void 0!==r&&r[i]&&(l=e.queries[a][i]),!l)return null;const f=-1===o?0:(s-1)*o,p=-1===o?l.length:Math.min(f+o,l.length),y=[];for(let t=f;t(t,n)=>e("core/data").isResolving("core","getEmbedPreview",[n]));function Re(e,t){const n=Object(h.addQueryArgs)("/wp/v2/users/?who=authors&per_page=100",t);return Te(e,n)}function je(e,t){return Object(d.get)(e,["users","byId",t],null)}function we(e){return e.currentUser}const Te=Object(Ee.a)((e,t)=>{const n=e.users.queries[t];return Object(d.map)(n,t=>e.users.byId[t])},(e,t)=>[e.users.queries[t],e.users.byId]);function ke(e,t){return Object(d.filter)(e.entities.config,{kind:t})}function Ie(e,t,n){return Object(d.find)(e.entities.config,{kind:t,name:n})}function Se(e,t,n,r,i){var s,o;const c=Object(d.get)(e.entities.data,[t,n,"queriedData"]);if(!c)return;const u=null!==(s=null==i?void 0:i.context)&&void 0!==s?s:"default";if(void 0===i){var a;if(null===(a=c.itemIsComplete[u])||void 0===a||!a[r])return;return c.items[u][r]}const l=null===(o=c.items[u])||void 0===o?void 0:o[r];if(l&&i._fields){const e={},t=ne(i._fields);for(let n=0;n{const i=Se(e,t,n,r);return i&&Object.keys(i).reduce((e,t)=>(e[t]=Object(d.get)(i[t],"raw",i[t]),e),{})},e=>[e.entities.data]);function xe(e,t,n,r){return Array.isArray(Ce(e,t,n,r))}function Ce(e,t,n,r){const i=Object(d.get)(e.entities.data,[t,n,"queriedData"]);return i?ve(i,r):ge}const Pe=Object(Ee.a)(e=>{const{entities:{data:t}}=e,n=[];return Object.keys(t).forEach(r=>{Object.keys(t[r]).forEach(i=>{const s=Object.keys(t[r][i].edits).filter(t=>Me(e,r,i,t));if(s.length){const t=Ie(e,r,i);s.forEach(s=>{var o;const c=qe(e,r,i,s);n.push({key:c[t.key||W],title:(null==t||null===(o=t.getTitle)||void 0===o?void 0:o.call(t,c))||"",name:i,kind:r})})}})}),n},e=>[e.entities.data]);function Le(e,t,n,r){return Object(d.get)(e.entities.data,[t,n,"edits",r])}const De=Object(Ee.a)((e,t,n,r)=>{const{transientEdits:i}=Ie(e,t,n)||{},s=Le(e,t,n,r)||{};return i?Object.keys(s).reduce((e,t)=>(i[t]||(e[t]=s[t]),e),{}):s},e=>[e.entities.config,e.entities.data]);function Me(e,t,n,r){return Ne(e,t,n,r)||Object.keys(De(e,t,n,r)).length>0}const qe=Object(Ee.a)((e,t,n,r)=>({...Ae(e,t,n,r),...Le(e,t,n,r)}),e=>[e.entities.data]);function Ve(e,t,n,r){const{pending:i,isAutosave:s}=Object(d.get)(e.entities.data,[t,n,"saving",r],{});return Boolean(i&&s)}function Ne(e,t,n,r){return Object(d.get)(e.entities.data,[t,n,"saving",r,"pending"],!1)}function Fe(e,t,n,r){return Object(d.get)(e.entities.data,[t,n,"deleting",r,"pending"],!1)}function Qe(e,t,n,r){return Object(d.get)(e.entities.data,[t,n,"saving",r,"error"])}function Ge(e,t,n,r){return Object(d.get)(e.entities.data,[t,n,"deleting",r,"error"])}function He(e){return e.undo.offset}function Ye(e){return e.undo[e.undo.length-2+He(e)]}function Be(e){return e.undo[e.undo.length+He(e)]}function $e(e){return Boolean(Ye(e))}function Ke(e){return Boolean(Be(e))}function ze(e){return e.themes[e.currentTheme]}function We(e){return e.themeSupports}function Ze(e,t){return e.embedPreviews[t]}function Xe(e,t){const n=e.embedPreviews[t],r=''+t+"";return!!n&&n.html===r}function Je(e,t,n,r){const i=Object(d.compact)([t,n,r]).join("/");return Object(d.get)(e,["userPermissions",i])}function et(e,t,n,r){const i=Ie(e,t,n);if(!i)return!1;return Je(e,"update",i.__unstable_rest_base,r)}function tt(e,t,n){return e.autosaves[n]}function nt(e,t,n,r){if(void 0===r)return;const i=e.autosaves[n];return Object(d.find)(i,{author:r})}const rt=Object(u.createRegistrySelector)(e=>(t,n,r)=>e("core").hasFinishedResolution("getAutosaves",[n,r])),it=Object(Ee.a)(()=>[],e=>[e.undo.length,e.undo.offset,e.undo.flattenedUndo]);function st(e,t){const n=Ce(e,"postType","wp_template",{"find-template":t}),r=null!=n&&n.length?n[0]:null;return r?qe(e,"postType","wp_template",r.id):r}var ot=(e,t)=>function*(...n){(yield u.controls.select("core","hasStartedResolution",t,n))||(yield*e(...n))};function*ct(e){const t=Object(h.addQueryArgs)("/wp/v2/users/?who=authors&per_page=100",e),n=yield Object(a.apiFetch)({path:t});yield A(t,n)}function*ut(e){const t="/wp/v2/users?who=authors&include="+e,n=yield Object(a.apiFetch)({path:t});yield A("author",n)}function*at(){const e=yield Object(a.apiFetch)({path:"/wp/v2/users/me"});yield x(e)}function*dt(e,t,n="",r){const i=yield te(e),s=Object(d.find)(i,{kind:e,name:t});if(!s)return;const o=yield*v("core",["entities","data",e,t,n],{exclusive:!1});try{void 0!==r&&r._fields&&(r={...r,_fields:Object(d.uniq)([...ne(r._fields)||[],s.key||W]).join()});const i=Object(h.addQueryArgs)(s.baseURL+"/"+n,{...s.baseURLParams,...r});if(void 0!==r){r={...r,include:[n]};if(yield u.controls.select("core","hasEntityRecords",e,t,r))return}const c=yield Object(a.apiFetch)({path:i});yield P(e,t,c,r)}catch(e){}finally{yield*O(o)}}const lt=ot(dt,"getEntityRecord"),ft=ot(lt,"getRawEntityRecord");function*pt(e,t,n={}){const r=yield te(e),i=Object(d.find)(r,{kind:e,name:t});if(!i)return;const s=yield*v("core",["entities","data",e,t],{exclusive:!1});try{var o;n._fields&&(n={...n,_fields:Object(d.uniq)([...ne(n._fields)||[],i.key||W]).join()});const r=Object(h.addQueryArgs)(i.baseURL,{...i.baseURLParams,...n});let c=Object.values(yield Object(a.apiFetch)({path:r}));if(n._fields&&(c=c.map(e=>(n._fields.split(",").forEach(t=>{e.hasOwnProperty(t)||(e[t]=void 0)}),e))),yield P(e,t,c,n),!(null!==(o=n)&&void 0!==o&&o._fields||n.context)){const n=i.key||W,r=c.filter(e=>e[n]).map(r=>[e,t,r[n]]);yield{type:"START_RESOLUTIONS",selectorName:"getEntityRecord",args:r},yield{type:"FINISH_RESOLUTIONS",selectorName:"getEntityRecord",args:r}}}finally{yield*O(s)}}function*yt(){const e=yield Object(a.apiFetch)({path:"/wp/v2/themes?status=active"});yield L(e[0])}function*bt(){const e=yield Object(a.apiFetch)({path:"/wp/v2/themes?status=active"});yield D(e[0].theme_supports)}function*Et(e){try{const t=yield Object(a.apiFetch)({path:Object(h.addQueryArgs)("/oembed/1.0/proxy",{url:e})});yield M(e,t)}catch(t){yield M(e,!1)}}function*mt(e,t,n){const r={create:"POST",read:"GET",update:"PUT",delete:"DELETE"}[e];if(!r)throw new Error(`'${e}' is not a valid action.`);const i=n?`/wp/v2/${t}/${n}`:"/wp/v2/"+t;let s,o;try{s=yield Object(a.apiFetch)({path:i,method:n?"GET":"OPTIONS",parse:!1})}catch(e){return}o=Object(d.hasIn)(s,["headers","get"])?s.headers.get("allow"):Object(d.get)(s,["headers","Allow"],"");const c=Object(d.compact)([e,t,n]).join("/"),u=Object(d.includes)(o,r);yield K(c,u)}function*ht(e,t,n){const r=yield te(e),i=Object(d.find)(r,{kind:e,name:t});if(!i)return;const s=i.__unstable_rest_base;yield mt("update",s,n)}function*_t(e,t){const{rest_base:n}=yield u.controls.resolveSelect("core","getPostType",e),r=yield Object(a.apiFetch)({path:`/wp/v2/${n}/${t}/autosaves?context=edit`});r&&r.length&&(yield z(t,r))}function*vt(e,t){yield u.controls.resolveSelect("core","getAutosaves",e,t)}function*gt(e){let t;try{t=yield(n=Object(h.addQueryArgs)(e,{"_wp-find-template":!0}),{type:"REGULAR_FETCH",url:n})}catch(e){}var n;if(!t)return;yield dt("postType","wp_template",t.id);const r=yield u.controls.select("core","getEntityRecord","postType","wp_template",t.id);r&&(yield P("postType","wp_template",[r],{"find-template":e}))}function Ot(e){return e.locks.requests}function Rt(e,t,n,{exclusive:r}){const i=[t,...n],s=e.locks.tree;for(const e of function*(e,t){let n=e;yield n;for(const e of t){const t=n.children[e];if(!t)break;yield t,n=t}}(s,i))if(ae({exclusive:r},e.locks))return!1;const o=ue(s,i);if(!o)return!0;for(const e of function*(e){const t=Object.values(e.children);for(;t.length;){const e=t.pop();yield e,t.push(...Object.values(e.children))}}(o))if(ae({exclusive:r},e.locks))return!1;return!0}pt.shouldInvalidate=(e,t,n)=>("RECEIVE_ITEMS"===e.type||"REMOVE_ITEMS"===e.type)&&e.invalidateCache&&t===e.kind&&n===e.name,gt.shouldInvalidate=e=>("RECEIVE_ITEMS"===e.type||"REMOVE_ITEMS"===e.type)&&e.invalidateCache&&"postType"===e.kind&&"wp_template"===e.name;var jt=n("GRId"),wt=n("HSyU");const Tt=[],kt={...Z.reduce((e,t)=>(e[t.kind]||(e[t.kind]={}),e[t.kind][t.name]={context:Object(jt.createContext)()},e),{}),...X.reduce((e,t)=>(e[t.name]={},e),{})},It=(e,t)=>{if(!kt[e])throw new Error(`Missing entity config for kind: ${e}.`);return kt[e][t]||(kt[e][t]={context:Object(jt.createContext)()}),kt[e][t]};function St({kind:e,type:t,id:n,children:r}){const i=It(e,t).context.Provider;return Object(jt.createElement)(i,{value:n},r)}function Ut(e,t){return Object(jt.useContext)(It(e,t).context)}function At(e,t,n,r){const i=Ut(e,t),s=null!=r?r:i,{value:o,fullValue:c}=Object(u.useSelect)(r=>{const{getEntityRecord:i,getEditedEntityRecord:o}=r("core"),c=i(e,t,s),u=o(e,t,s);return c&&u?{value:u[n],fullValue:c[n]}:{}},[e,t,s,n]),{editEntityRecord:a}=Object(u.useDispatch)("core");return[o,Object(jt.useCallback)(r=>{a(e,t,s,{[n]:r})},[e,t,s,n]),c]}function xt(e,t,{id:n}={}){const r=Ut(e,t),i=null!=n?n:r,{content:s,blocks:o}=Object(u.useSelect)(n=>{const{getEditedEntityRecord:r}=n("core"),s=r(e,t,i);return{blocks:s.blocks,content:s.content}},[e,t,i]),{__unstableCreateUndoLevel:c,editEntityRecord:a}=Object(u.useDispatch)("core");Object(jt.useEffect)(()=>{if(s&&"function"!=typeof s&&!o){const n=Object(wt.parse)(s);a(e,t,i,{blocks:n},{undoIgnore:!0})}},[s]);const d=Object(jt.useCallback)((n,r)=>{const{selection:s}=r,u={blocks:n,selection:s};if(o===u.blocks)return c(e,t,i);u.content=({blocks:e=[]})=>Object(wt.__unstableSerializeAndClean)(e),a(e,t,i,u)},[e,t,i,o]),l=Object(jt.useCallback)((n,r)=>{const{selection:s}=r;a(e,t,i,{blocks:n,selection:s})},[e,t,i]);return[null!=o?o:Tt,l,d]}var Ct=n("rmEH");var Pt=async(e,t={},n={})=>{const{isInitialSuggestions:r=!1,type:i,subtype:s,page:o,perPage:c=(r?3:20)}=t,{disablePostFormats:u=!1}=n,a=[];return i&&"post"!==i||a.push(w()({path:Object(h.addQueryArgs)("/wp/v2/search",{search:e,page:o,per_page:c,type:"post",subtype:s})}).then(e=>e.map(e=>({...e,meta:{kind:"post-type",subtype:s}}))).catch(()=>[])),i&&"term"!==i||a.push(w()({path:Object(h.addQueryArgs)("/wp/v2/search",{search:e,page:o,per_page:c,type:"term",subtype:s})}).then(e=>e.map(e=>({...e,meta:{kind:"taxonomy",subtype:s}}))).catch(()=>[])),u||i&&"post-format"!==i||a.push(w()({path:Object(h.addQueryArgs)("/wp/v2/search",{search:e,page:o,per_page:c,type:"post-format",subtype:s})}).then(e=>e.map(e=>({...e,meta:{kind:"taxonomy",subtype:s}}))).catch(()=>[])),Promise.all(a).then(e=>e.reduce((e,t)=>e.concat(t),[]).filter(e=>!!e.id).slice(0,c).map(e=>{var t;return{id:e.id,url:e.url,title:Object(Ct.decodeEntities)(e.title||"")||Object(E.__)("(no title)"),type:e.subtype||e.type,kind:null==e||null===(t=e.meta)||void 0===t?void 0:t.kind}}))};var Lt=async e=>{const t={url:Object(h.prependHTTP)(e)};return w()({path:Object(h.addQueryArgs)("/__experimental/url-details",t)})};const Dt=Z.reduce((e,t)=>{const{kind:n,name:r}=t;return e[ee(n,r)]=(e,t)=>Se(e,n,r,t),e[ee(n,r,"get",!0)]=(e,...t)=>Ce(e,n,r,...t),e},{}),Mt=Z.reduce((e,t)=>{const{kind:n,name:r}=t;e[ee(n,r)]=e=>dt(n,r,e);const i=ee(n,r,"get",!0);return e[i]=(...e)=>pt(n,r,...e),e[i].shouldInvalidate=(e,...t)=>pt.shouldInvalidate(e,n,r,...t),e},{}),qt=Z.reduce((e,t)=>{const{kind:n,name:r}=t;return e[ee(n,r,"save")]=e=>G(n,r,e),e[ee(n,r,"delete")]=(e,t)=>q(n,r,e,t),e},{}),Vt={reducer:be,controls:{...U,...a.controls},actions:{...i,...qt,...r},selectors:{...s,...Dt,...c},resolvers:{...o,...Mt}},Nt=Object(u.createReduxStore)("core",Vt);Object(u.register)(Nt)},l3Sj:function(e,t){e.exports=window.wp.i18n},pPDe:function(e,t,n){"use strict";var r,i;function s(e){return[e]}function o(){var e={clear:function(){e.head=null}};return e}function c(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r