!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=(new Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="4554da58-8c73-4e62-9f51-365a5d234e69",t._sentryDebugIdIdentifier="sentry-dbid-4554da58-8c73-4e62-9f51-365a5d234e69")}catch(t){}}(),("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"f92eb2497ee348ad973a18a5039ebf77ac65fb03"},(self.webpackChunkhw_admin=self.webpackChunkhw_admin||[]).push([[6805],{74221:(t,e,n)=>{function s(t){return Array.isArray?Array.isArray(t):"[object Array]"===d(t)}n.d(e,{Z:()=>Y});const i=1/0;function r(t){return null==t?"":function(t){if("string"==typeof t)return t;let e=t+"";return"0"==e&&1/t==-i?"-0":e}(t)}function c(t){return"string"==typeof t}function o(t){return"number"==typeof t}function h(t){return!0===t||!1===t||function(t){return a(t)&&null!==t}(t)&&"[object Boolean]"==d(t)}function a(t){return"object"==typeof t}function l(t){return null!=t}function u(t){return!t.trim().length}function d(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const g=t=>`Missing ${t} property in key`,f=t=>`Property 'weight' in key '${t}' must be a positive integer`,p=Object.prototype.hasOwnProperty;class m{constructor(t){this._keys=[],this._keyMap={};let e=0;t.forEach((t=>{let n=y(t);e+=n.weight,this._keys.push(n),this._keyMap[n.id]=n,e+=n.weight})),this._keys.forEach((t=>{t.weight/=e}))}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function y(t){let e=null,n=null,i=null,r=1,o=null;if(c(t)||s(t))i=t,e=M(t),n=x(t);else{if(!p.call(t,"name"))throw new Error(g("name"));const s=t.name;if(i=s,p.call(t,"weight")&&(r=t.weight,r<=0))throw new Error(f(s));e=M(s),n=x(s),o=t.getFn}return{path:e,id:n,weight:r,src:i,getFn:o}}function M(t){return s(t)?t:t.split(".")}function x(t){return s(t)?t.join("."):t}var L={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,...{useExtendedSearch:!1,getFn:function(t,e){let n=[],i=!1;const a=(t,e,u)=>{if(l(t))if(e[u]){const d=t[e[u]];if(!l(d))return;if(u===e.length-1&&(c(d)||o(d)||h(d)))n.push(r(d));else if(s(d)){i=!0;for(let t=0,n=d.length;t<n;t+=1)a(d[t],e,u+1)}else e.length&&a(d,e,u+1)}else n.push(t)};return a(t,c(e)?e.split("."):e,0),i?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1}};const v=/[^ ]+/g;class _{constructor({getFn:t=L.getFn,fieldNormWeight:e=L.fieldNormWeight}={}){this.norm=function(t=1,e=3){const n=new Map,s=Math.pow(10,e);return{get(e){const i=e.match(v).length;if(n.has(i))return n.get(i);const r=1/Math.pow(i,.5*t),c=parseFloat(Math.round(r*s)/s);return n.set(i,c),c},clear(){n.clear()}}}(e,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach(((t,e)=>{this._keysMap[t.id]=e}))}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,c(this.docs[0])?this.docs.forEach(((t,e)=>{this._addString(t,e)})):this.docs.forEach(((t,e)=>{this._addObject(t,e)})),this.norm.clear())}add(t){const e=this.size();c(t)?this._addString(t,e):this._addObject(t,e)}removeAt(t){this.records.splice(t,1);for(let e=t,n=this.size();e<n;e+=1)this.records[e].i-=1}getValueForItemAtKeyId(t,e){return t[this._keysMap[e]]}size(){return this.records.length}_addString(t,e){if(!l(t)||u(t))return;let n={v:t,i:e,n:this.norm.get(t)};this.records.push(n)}_addObject(t,e){let n={i:e,$:{}};this.keys.forEach(((e,i)=>{let r=e.getFn?e.getFn(t):this.getFn(t,e.path);if(l(r))if(s(r)){let t=[];const e=[{nestedArrIndex:-1,value:r}];for(;e.length;){const{nestedArrIndex:n,value:i}=e.pop();if(l(i))if(c(i)&&!u(i)){let e={v:i,i:n,n:this.norm.get(i)};t.push(e)}else s(i)&&i.forEach(((t,n)=>{e.push({nestedArrIndex:n,value:t})}))}n.$[i]=t}else if(c(r)&&!u(r)){let t={v:r,n:this.norm.get(r)};n.$[i]=t}})),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function k(t,e,{getFn:n=L.getFn,fieldNormWeight:s=L.fieldNormWeight}={}){const i=new _({getFn:n,fieldNormWeight:s});return i.setKeys(t.map(y)),i.setSources(e),i.create(),i}function w(t,{errors:e=0,currentLocation:n=0,expectedLocation:s=0,distance:i=L.distance,ignoreLocation:r=L.ignoreLocation}={}){const c=e/t.length;if(r)return c;const o=Math.abs(s-n);return i?c+o/i:o?1:c}const S=32;function b(t,e,n,{location:s=L.location,distance:i=L.distance,threshold:r=L.threshold,findAllMatches:c=L.findAllMatches,minMatchCharLength:o=L.minMatchCharLength,includeMatches:h=L.includeMatches,ignoreLocation:a=L.ignoreLocation}={}){if(e.length>S)throw new Error(`Pattern length exceeds max of ${S}.`);const l=e.length,u=t.length,d=Math.max(0,Math.min(s,u));let g=r,f=d;const p=o>1||h,m=p?Array(u):[];let y;for(;(y=t.indexOf(e,f))>-1;){let t=w(e,{currentLocation:y,expectedLocation:d,distance:i,ignoreLocation:a});if(g=Math.min(t,g),f=y+l,p){let t=0;for(;t<l;)m[y+t]=1,t+=1}}f=-1;let M=[],x=1,v=l+u;const _=1<<l-1;for(let s=0;s<l;s+=1){let r=0,o=v;for(;r<o;){w(e,{errors:s,currentLocation:d+o,expectedLocation:d,distance:i,ignoreLocation:a})<=g?r=o:v=o,o=Math.floor((v-r)/2+r)}v=o;let h=Math.max(1,d-o+1),y=c?u:Math.min(d+o,u)+l,L=Array(y+2);L[y+1]=(1<<s)-1;for(let r=y;r>=h;r-=1){let c=r-1,o=n[t.charAt(c)];if(p&&(m[c]=+!!o),L[r]=(L[r+1]<<1|1)&o,s&&(L[r]|=(M[r+1]|M[r])<<1|1|M[r+1]),L[r]&_&&(x=w(e,{errors:s,currentLocation:c,expectedLocation:d,distance:i,ignoreLocation:a}),x<=g)){if(g=x,f=c,f<=d)break;h=Math.max(1,2*d-f)}}if(w(e,{errors:s+1,currentLocation:d,expectedLocation:d,distance:i,ignoreLocation:a})>g)break;M=L}const k={isMatch:f>=0,score:Math.max(.001,x)};if(p){const t=function(t=[],e=L.minMatchCharLength){let n=[],s=-1,i=-1,r=0;for(let c=t.length;r<c;r+=1){let c=t[r];c&&-1===s?s=r:c||-1===s||(i=r-1,i-s+1>=e&&n.push([s,i]),s=-1)}return t[r-1]&&r-s>=e&&n.push([s,r-1]),n}(m,o);t.length?h&&(k.indices=t):k.isMatch=!1}return k}function I(t){let e={};for(let n=0,s=t.length;n<s;n+=1){const i=t.charAt(n);e[i]=(e[i]||0)|1<<s-n-1}return e}class C{constructor(t,{location:e=L.location,threshold:n=L.threshold,distance:s=L.distance,includeMatches:i=L.includeMatches,findAllMatches:r=L.findAllMatches,minMatchCharLength:c=L.minMatchCharLength,isCaseSensitive:o=L.isCaseSensitive,ignoreLocation:h=L.ignoreLocation}={}){if(this.options={location:e,threshold:n,distance:s,includeMatches:i,findAllMatches:r,minMatchCharLength:c,isCaseSensitive:o,ignoreLocation:h},this.pattern=o?t:t.toLowerCase(),this.chunks=[],!this.pattern.length)return;const a=(t,e)=>{this.chunks.push({pattern:t,alphabet:I(t),startIndex:e})},l=this.pattern.length;if(l>S){let t=0;const e=l%S,n=l-e;for(;t<n;)a(this.pattern.substr(t,S),t),t+=S;if(e){const t=l-S;a(this.pattern.substr(t),t)}}else a(this.pattern,0)}searchIn(t){const{isCaseSensitive:e,includeMatches:n}=this.options;if(e||(t=t.toLowerCase()),this.pattern===t){let e={isMatch:!0,score:0};return n&&(e.indices=[[0,t.length-1]]),e}const{location:s,distance:i,threshold:r,findAllMatches:c,minMatchCharLength:o,ignoreLocation:h}=this.options;let a=[],l=0,u=!1;this.chunks.forEach((({pattern:e,alphabet:d,startIndex:g})=>{const{isMatch:f,score:p,indices:m}=b(t,e,d,{location:s+g,distance:i,threshold:r,findAllMatches:c,minMatchCharLength:o,includeMatches:n,ignoreLocation:h});f&&(u=!0),l+=p,f&&m&&(a=[...a,...m])}));let d={isMatch:u,score:u?l/this.chunks.length:1};return u&&n&&(d.indices=a),d}}class A{constructor(t){this.pattern=t}static isMultiMatch(t){return E(t,this.multiRegex)}static isSingleMatch(t){return E(t,this.singleRegex)}search(){}}function E(t,e){const n=t.match(e);return n?n[1]:null}class $ extends A{constructor(t,{location:e=L.location,threshold:n=L.threshold,distance:s=L.distance,includeMatches:i=L.includeMatches,findAllMatches:r=L.findAllMatches,minMatchCharLength:c=L.minMatchCharLength,isCaseSensitive:o=L.isCaseSensitive,ignoreLocation:h=L.ignoreLocation}={}){super(t),this._bitapSearch=new C(t,{location:e,threshold:n,distance:s,includeMatches:i,findAllMatches:r,minMatchCharLength:c,isCaseSensitive:o,ignoreLocation:h})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class F extends A{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let e,n=0;const s=[],i=this.pattern.length;for(;(e=t.indexOf(this.pattern,n))>-1;)n=e+i,s.push([e,n-1]);const r=!!s.length;return{isMatch:r,score:r?0:1,indices:s}}}const N=[class extends A{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const e=t===this.pattern;return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},F,class extends A{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const e=t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},class extends A{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const e=!t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},class extends A{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const e=!t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},class extends A{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const e=t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[t.length-this.pattern.length,t.length-1]}}},class extends A{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const e=-1===t.indexOf(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},$],R=N.length,O=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/;const j=new Set([$.type,F.type]);class W{constructor(t,{isCaseSensitive:e=L.isCaseSensitive,includeMatches:n=L.includeMatches,minMatchCharLength:s=L.minMatchCharLength,ignoreLocation:i=L.ignoreLocation,findAllMatches:r=L.findAllMatches,location:c=L.location,threshold:o=L.threshold,distance:h=L.distance}={}){this.query=null,this.options={isCaseSensitive:e,includeMatches:n,minMatchCharLength:s,findAllMatches:r,ignoreLocation:i,location:c,threshold:o,distance:h},this.pattern=e?t:t.toLowerCase(),this.query=function(t,e={}){return t.split("|").map((t=>{let n=t.trim().split(O).filter((t=>t&&!!t.trim())),s=[];for(let t=0,i=n.length;t<i;t+=1){const i=n[t];let r=!1,c=-1;for(;!r&&++c<R;){const t=N[c];let n=t.isMultiMatch(i);n&&(s.push(new t(n,e)),r=!0)}if(!r)for(c=-1;++c<R;){const t=N[c];let n=t.isSingleMatch(i);if(n){s.push(new t(n,e));break}}}return s}))}(this.pattern,this.options)}static condition(t,e){return e.useExtendedSearch}searchIn(t){const e=this.query;if(!e)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:s}=this.options;t=s?t:t.toLowerCase();let i=0,r=[],c=0;for(let s=0,o=e.length;s<o;s+=1){const o=e[s];r.length=0,i=0;for(let e=0,s=o.length;e<s;e+=1){const s=o[e],{isMatch:h,indices:a,score:l}=s.search(t);if(!h){c=0,i=0,r.length=0;break}if(i+=1,c+=l,n){const t=s.constructor.type;j.has(t)?r=[...r,...a]:r.push(a)}}if(i){let t={isMatch:!0,score:c/i};return n&&(t.indices=r),t}}return{isMatch:!1,score:1}}}const D=[];function z(t,e){for(let n=0,s=D.length;n<s;n+=1){let s=D[n];if(s.condition(t,e))return new s(t,e)}return new C(t,e)}const K="$and",P="$or",T="$path",q="$val",J=t=>!(!t[K]&&!t[P]),V=t=>({[K]:Object.keys(t).map((e=>({[e]:t[e]})))});function B(t,e,{auto:n=!0}={}){const i=t=>{let r=Object.keys(t);const o=(t=>!!t[T])(t);if(!o&&r.length>1&&!J(t))return i(V(t));if((t=>!s(t)&&a(t)&&!J(t))(t)){const s=o?t[T]:r[0],i=o?t[q]:t[s];if(!c(i))throw new Error((t=>`Invalid value for key ${t}`)(s));const h={keyId:x(s),pattern:i};return n&&(h.searcher=z(i,e)),h}let h={children:[],operator:r[0]};return r.forEach((e=>{const n=t[e];s(n)&&n.forEach((t=>{h.children.push(i(t))}))})),h};return J(t)||(t=V(t)),i(t)}function Q(t,e){const n=t.matches;e.matches=[],l(n)&&n.forEach((t=>{if(!l(t.indices)||!t.indices.length)return;const{indices:n,value:s}=t;let i={indices:n,value:s};t.key&&(i.key=t.key.src),t.idx>-1&&(i.refIndex=t.idx),e.matches.push(i)}))}function U(t,e){e.score=t.score}class Y{constructor(t,e={},n){this.options={...L,...e},this.options.useExtendedSearch,this._keyStore=new m(this.options.keys),this.setCollection(t,n)}setCollection(t,e){if(this._docs=t,e&&!(e instanceof _))throw new Error("Incorrect 'index' type");this._myIndex=e||k(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){l(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=(()=>!1)){const e=[];for(let n=0,s=this._docs.length;n<s;n+=1){const i=this._docs[n];t(i,n)&&(this.removeAt(n),n-=1,s-=1,e.push(i))}return e}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:e=-1}={}){const{includeMatches:n,includeScore:s,shouldSort:i,sortFn:r,ignoreFieldNorm:h}=this.options;let a=c(t)?c(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return function(t,{ignoreFieldNorm:e=L.ignoreFieldNorm}){t.forEach((t=>{let n=1;t.matches.forEach((({key:t,norm:s,score:i})=>{const r=t?t.weight:null;n*=Math.pow(0===i&&r?Number.EPSILON:i,(r||1)*(e?1:s))})),t.score=n}))}(a,{ignoreFieldNorm:h}),i&&a.sort(r),o(e)&&e>-1&&(a=a.slice(0,e)),function(t,e,{includeMatches:n=L.includeMatches,includeScore:s=L.includeScore}={}){const i=[];return n&&i.push(Q),s&&i.push(U),t.map((t=>{const{idx:n}=t,s={item:e[n],refIndex:n};return i.length&&i.forEach((e=>{e(t,s)})),s}))}(a,this._docs,{includeMatches:n,includeScore:s})}_searchStringList(t){const e=z(t,this.options),{records:n}=this._myIndex,s=[];return n.forEach((({v:t,i:n,n:i})=>{if(!l(t))return;const{isMatch:r,score:c,indices:o}=e.searchIn(t);r&&s.push({item:t,idx:n,matches:[{score:c,value:t,norm:i,indices:o}]})})),s}_searchLogical(t){const e=B(t,this.options),n=(t,e,s)=>{if(!t.children){const{keyId:n,searcher:i}=t,r=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(e,n),searcher:i});return r&&r.length?[{idx:s,item:e,matches:r}]:[]}const i=[];for(let r=0,c=t.children.length;r<c;r+=1){const c=t.children[r],o=n(c,e,s);if(o.length)i.push(...o);else if(t.operator===K)return[]}return i},s=this._myIndex.records,i={},r=[];return s.forEach((({$:t,i:s})=>{if(l(t)){let c=n(e,t,s);c.length&&(i[s]||(i[s]={idx:s,item:t,matches:[]},r.push(i[s])),c.forEach((({matches:t})=>{i[s].matches.push(...t)})))}})),r}_searchObjectList(t){const e=z(t,this.options),{keys:n,records:s}=this._myIndex,i=[];return s.forEach((({$:t,i:s})=>{if(!l(t))return;let r=[];n.forEach(((n,s)=>{r.push(...this._findMatches({key:n,value:t[s],searcher:e}))})),r.length&&i.push({idx:s,item:t,matches:r})})),i}_findMatches({key:t,value:e,searcher:n}){if(!l(e))return[];let i=[];if(s(e))e.forEach((({v:e,i:s,n:r})=>{if(!l(e))return;const{isMatch:c,score:o,indices:h}=n.searchIn(e);c&&i.push({score:o,key:t,value:e,idx:s,norm:r,indices:h})}));else{const{v:s,n:r}=e,{isMatch:c,score:o,indices:h}=n.searchIn(s);c&&i.push({score:o,key:t,value:s,norm:r,indices:h})}return i}}Y.version="6.6.2",Y.createIndex=k,Y.parseIndex=function(t,{getFn:e=L.getFn,fieldNormWeight:n=L.fieldNormWeight}={}){const{keys:s,records:i}=t,r=new _({getFn:e,fieldNormWeight:n});return r.setKeys(s),r.setIndexRecords(i),r},Y.config=L,Y.parseQuery=B,function(...t){D.push(...t)}(W)},29035:(t,e,n)=>{n.d(e,{N:()=>r});var s=n(67294),i=n(22782),r=(t,e)=>(0,s.useRef)((0,i.D)(t,e)).current},22782:(t,e,n)=>{n.d(e,{D:()=>s});n(76265);var s=function(t){var e,n,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=null!==(n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).leading)&&void 0!==n&&n,r=!1,c=function(){for(var n=arguments.length,c=new Array(n),o=0;o<n;o++)c[o]=arguments[o];if(i&&!r)return t(...c),void(r=!0);clearTimeout(e),e=setTimeout((()=>{t(...c),r=!1}),s)};return c.cancel=()=>{clearTimeout(e),r=!1},c}}}]);
//# sourceMappingURL=6805.82fb359bb3cc8d4d.js.map