datahub/packages/components/storybook-static/assets/Catalog.stories-ea9731da.js
Luccas Mateus de Medeiros Gomes 58b4c1918f [éxamples]
2023-05-24 13:41:11 -03:00

158 lines
57 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{j as jsxRuntimeExports}from"./jsx-runtime-94f6e698.js";import{c as commonjsGlobal}from"./_commonjsHelpers-042e6b4d.js";import{R as React,r as reactExports}from"./index-8db94870.js";import{D as DebouncedInput}from"./DebouncedInput-c720676c.js";var flexsearch_bundle={exports:{}};flexsearch_bundle.exports;(function(module){(function _f(self){try{module&&(self=module)}catch(e){}self._factory=_f;var t;function u(e){return typeof e<"u"?e:!0}function aa(e){const i=Array(e);for(let s=0;s<e;s++)i[s]=v();return i}function v(){return Object.create(null)}function ba(e,i){return i.length-e.length}function x(e){return typeof e=="string"}function C(e){return typeof e=="object"}function D(e){return typeof e=="function"}function ca(e,i){var s=da;if(e&&(i&&(e=E(e,i)),this.H&&(e=E(e,this.H)),this.J&&1<e.length&&(e=E(e,this.J)),s||s==="")){if(e=e.split(s),this.filter){i=this.filter,s=e.length;const n=[];for(let r=0,o=0;r<s;r++){const f=e[r];f&&!i[f]&&(n[o++]=f)}e=n}return e}return e}const da=/[\p{Z}\p{S}\p{P}\p{C}]+/u,ea=/[\u0300-\u036f]/g;function fa(e,i){const s=Object.keys(e),n=s.length,r=[];let o="",f=0;for(let g=0,m,A;g<n;g++)m=s[g],(A=e[m])?(r[f++]=F(i?"(?!\\b)"+m+"(\\b|_)":m),r[f++]=A):o+=(o?"|":"")+m;return o&&(r[f++]=F(i?"(?!\\b)("+o+")(\\b|_)":"("+o+")"),r[f]=""),r}function E(e,i){for(let s=0,n=i.length;s<n&&(e=e.replace(i[s],i[s+1]),e);s+=2);return e}function F(e){return new RegExp(e,"g")}function ha(e){let i="",s="";for(let n=0,r=e.length,o;n<r;n++)(o=e[n])!==s&&(i+=s=o);return i}var ja={encode:ia,F:!1,G:""};function ia(e){return ca.call(this,(""+e).toLowerCase(),!1)}const ka={},G={};function la(e){I(e,"add"),I(e,"append"),I(e,"search"),I(e,"update"),I(e,"remove")}function I(e,i){e[i+"Async"]=function(){const s=this,n=arguments;var r=n[n.length-1];let o;return D(r)&&(o=r,delete n[n.length-1]),r=new Promise(function(f){setTimeout(function(){s.async=!0;const g=s[i].apply(s,n);s.async=!1,f(g)})}),o?(r.then(o),this):r}}function ma(e,i,s,n){const r=e.length;let o=[],f,g,m=0;n&&(n=[]);for(let A=r-1;0<=A;A--){const j=e[A],z=j.length,w=v();let H=!f;for(let k=0;k<z;k++){const X=j[k],ae=X.length;if(ae)for(let ue=0,q,te;ue<ae;ue++)if(te=X[ue],f){if(f[te]){if(!A){if(s)s--;else if(o[m++]=te,m===i)return o}(A||n)&&(w[te]=1),H=!0}if(n&&(g[te]=(q=g[te])?++q:q=1,q<r)){const oe=n[q-2]||(n[q-2]=[]);oe[oe.length]=te}}else w[te]=1}if(n)f||(g=w);else if(!H)return[];f=w}if(n)for(let A=n.length-1,j,z;0<=A;A--){j=n[A],z=j.length;for(let w=0,H;w<z;w++)if(H=j[w],!f[H]){if(s)s--;else if(o[m++]=H,m===i)return o;f[H]=1}}return o}function na(e,i){const s=v(),n=v(),r=[];for(let o=0;o<e.length;o++)s[e[o]]=1;for(let o=0,f;o<i.length;o++){f=i[o];for(let g=0,m;g<f.length;g++)m=f[g],s[m]&&!n[m]&&(n[m]=1,r[r.length]=m)}return r}function J(e){this.l=e!==!0&&e,this.cache=v(),this.h=[]}function oa(e,i,s){C(e)&&(e=e.query);let n=this.cache.get(e);return n||(n=this.search(e,i,s),this.cache.set(e,n)),n}J.prototype.set=function(e,i){if(!this.cache[e]){var s=this.h.length;for(s===this.l?delete this.cache[this.h[s-1]]:s++,--s;0<s;s--)this.h[s]=this.h[s-1];this.h[0]=e}this.cache[e]=i},J.prototype.get=function(e){const i=this.cache[e];if(this.l&&i&&(e=this.h.indexOf(e))){const s=this.h[e-1];this.h[e-1]=this.h[e],this.h[e]=s}return i};const qa={memory:{charset:"latin:extra",D:3,B:4,m:!1},performance:{D:3,B:3,s:!1,context:{depth:2,D:1}},match:{charset:"latin:extra",G:"reverse"},score:{charset:"latin:advanced",D:20,B:3,context:{depth:3,D:9}},default:{}};function ra(e,i,s,n,r,o){setTimeout(function(){const f=e(s,JSON.stringify(o));f&&f.then?f.then(function(){i.export(e,i,s,n,r+1)}):i.export(e,i,s,n,r+1)})}function K(e,i){if(!(this instanceof K))return new K(e);var s;if(e){x(e)?e=qa[e]:(s=e.preset)&&(e=Object.assign({},s[s],e)),s=e.charset;var n=e.lang;x(s)&&(s.indexOf(":")===-1&&(s+=":default"),s=G[s]),x(n)&&(n=ka[n])}else e={};let r,o,f=e.context||{};if(this.encode=e.encode||s&&s.encode||ia,this.register=i||v(),this.D=r=e.resolution||9,this.G=i=s&&s.G||e.tokenize||"strict",this.depth=i==="strict"&&f.depth,this.l=u(f.bidirectional),this.s=o=u(e.optimize),this.m=u(e.fastupdate),this.B=e.minlength||1,this.C=e.boost,this.map=o?aa(r):v(),this.A=r=f.resolution||1,this.h=o?aa(r):v(),this.F=s&&s.F||e.rtl,this.H=(i=e.matcher||n&&n.H)&&fa(i,!1),this.J=(i=e.stemmer||n&&n.J)&&fa(i,!0),s=i=e.filter||n&&n.filter){s=i,n=v();for(let g=0,m=s.length;g<m;g++)n[s[g]]=1;s=n}this.filter=s,this.cache=(i=e.cache)&&new J(i)}t=K.prototype,t.append=function(e,i){return this.add(e,i,!0)},t.add=function(e,i,s,n){if(i&&(e||e===0)){if(!n&&!s&&this.register[e])return this.update(e,i);if(i=this.encode(i),n=i.length){const A=v(),j=v(),z=this.depth,w=this.D;for(let H=0;H<n;H++){let k=i[this.F?n-1-H:H];var r=k.length;if(k&&r>=this.B&&(z||!j[k])){var o=L(w,n,H),f="";switch(this.G){case"full":if(3<r){for(o=0;o<r;o++)for(var g=r;g>o;g--)if(g-o>=this.B){var m=L(w,n,H,r,o);f=k.substring(o,g),M(this,j,f,m,e,s)}break}case"reverse":if(2<r){for(g=r-1;0<g;g--)f=k[g]+f,f.length>=this.B&&M(this,j,f,L(w,n,H,r,g),e,s);f=""}case"forward":if(1<r){for(g=0;g<r;g++)f+=k[g],f.length>=this.B&&M(this,j,f,o,e,s);break}default:if(this.C&&(o=Math.min(o/this.C(i,k,H)|0,w-1)),M(this,j,k,o,e,s),z&&1<n&&H<n-1){for(r=v(),f=this.A,o=k,g=Math.min(z+1,n-H),r[o]=1,m=1;m<g;m++)if((k=i[this.F?n-1-H-m:H+m])&&k.length>=this.B&&!r[k]){r[k]=1;const X=this.l&&k>o;M(this,A,X?o:k,L(f+(n/2>f?0:1),n,H,g-1,m-1),e,s,X?k:o)}}}}}this.m||(this.register[e]=1)}}return this};function L(e,i,s,n,r){return s&&1<e?i+(n||0)<=e?s+(r||0):(e-1)/(i+(n||0))*(s+(r||0))+1|0:0}function M(e,i,s,n,r,o,f){let g=f?e.h:e.map;(!i[s]||f&&!i[s][f])&&(e.s&&(g=g[n]),f?(i=i[s]||(i[s]=v()),i[f]=1,g=g[f]||(g[f]=v())):i[s]=1,g=g[s]||(g[s]=[]),e.s||(g=g[n]||(g[n]=[])),o&&g.indexOf(r)!==-1||(g[g.length]=r,e.m&&(e=e.register[r]||(e.register[r]=[]),e[e.length]=g)))}t.search=function(e,i,s){s||(!i&&C(e)?(s=e,e=s.query):C(i)&&(s=i));let n=[],r,o,f=0;if(s){i=s.limit,f=s.offset||0;var g=s.context;o=s.suggest}if(e&&(e=this.encode(e),r=e.length,1<r)){s=v();var m=[];for(let j=0,z=0,w;j<r;j++)if((w=e[j])&&w.length>=this.B&&!s[w])if(this.s||o||this.map[w])m[z++]=w,s[w]=1;else return n;e=m,r=e.length}if(!r)return n;i||(i=100),g=this.depth&&1<r&&g!==!1,s=0;let A;g?(A=e[0],s=1):1<r&&e.sort(ba);for(let j,z;s<r;s++){if(z=e[s],g?(j=sa(this,n,o,i,f,r===2,z,A),o&&j===!1&&n.length||(A=z)):j=sa(this,n,o,i,f,r===1,z),j)return j;if(o&&s===r-1){if(m=n.length,!m){if(g){g=0,s=-1;continue}return n}if(m===1)return ta(n[0],i,f)}}return ma(n,i,f,o)};function sa(e,i,s,n,r,o,f,g){let m=[],A=g?e.h:e.map;if(e.s||(A=ua(A,f,g,e.l)),A){let j=0;const z=Math.min(A.length,g?e.A:e.D);for(let w=0,H=0,k,X;w<z&&!((k=A[w])&&(e.s&&(k=ua(k,f,g,e.l)),r&&k&&o&&(X=k.length,X<=r?(r-=X,k=null):(k=k.slice(r),r=0)),k&&(m[j++]=k,o&&(H+=k.length,H>=n))));w++);if(j){if(o)return ta(m,n,0);i[i.length]=m;return}}return!s&&m}function ta(e,i,s){return e=e.length===1?e[0]:[].concat.apply([],e),s||e.length>i?e.slice(s,s+i):e}function ua(e,i,s,n){return s?(n=n&&i>s,e=(e=e[n?i:s])&&e[n?s:i]):e=e[i],e}t.contain=function(e){return!!this.register[e]},t.update=function(e,i){return this.remove(e).add(e,i)},t.remove=function(e,i){const s=this.register[e];if(s){if(this.m)for(let n=0,r;n<s.length;n++)r=s[n],r.splice(r.indexOf(e),1);else N(this.map,e,this.D,this.s),this.depth&&N(this.h,e,this.A,this.s);if(i||delete this.register[e],this.cache){i=this.cache;for(let n=0,r,o;n<i.h.length;n++)o=i.h[n],r=i.cache[o],r.indexOf(e)!==-1&&(i.h.splice(n--,1),delete i.cache[o])}}return this};function N(e,i,s,n,r){let o=0;if(e.constructor===Array)if(r)i=e.indexOf(i),i!==-1?1<e.length&&(e.splice(i,1),o++):o++;else{r=Math.min(e.length,s);for(let f=0,g;f<r;f++)(g=e[f])&&(o=N(g,i,s,n,r),n||o||delete e[f])}else for(let f in e)(o=N(e[f],i,s,n,r))||delete e[f];return o}t.searchCache=oa,t.export=function(e,i,s,n,r){let o,f;switch(r||(r=0)){case 0:if(o="reg",this.m){f=v();for(let g in this.register)f[g]=1}else f=this.register;break;case 1:o="cfg",f={doc:0,opt:this.s?1:0};break;case 2:o="map",f=this.map;break;case 3:o="ctx",f=this.h;break;default:return}return ra(e,i||this,s?s+"."+o:o,n,r,f),!0},t.import=function(e,i){if(i)switch(x(i)&&(i=JSON.parse(i)),e){case"cfg":this.s=!!i.opt;break;case"reg":this.m=!1,this.register=i;break;case"map":this.map=i;break;case"ctx":this.h=i}},la(K.prototype);function va(e){e=e.data;var i=self._index;const s=e.args;var n=e.task;switch(n){case"init":n=e.options||{},e=e.factory,i=n.encode,n.cache=!1,i&&i.indexOf("function")===0&&(n.encode=Function("return "+i)()),e?(Function("return "+e)()(self),self._index=new self.FlexSearch.Index(n),delete self.FlexSearch):self._index=new K(n);break;default:e=e.id,i=i[n].apply(i,s),postMessage(n==="search"?{id:e,msg:i}:{id:e})}}let wa=0;function O(e){if(!(this instanceof O))return new O(e);var i;e?D(i=e.encode)&&(e.encode=i.toString()):e={},(i=(self||window)._factory)&&(i=i.toString());const s=self.exports,n=this;this.o=xa(i,s,e.worker),this.h=v(),this.o&&(s?this.o.on("message",function(r){n.h[r.id](r.msg),delete n.h[r.id]}):this.o.onmessage=function(r){r=r.data,n.h[r.id](r.msg),delete n.h[r.id]},this.o.postMessage({task:"init",factory:i,options:e}))}P("add"),P("append"),P("search"),P("update"),P("remove");function P(e){O.prototype[e]=O.prototype[e+"Async"]=function(){const i=this,s=[].slice.call(arguments);var n=s[s.length-1];let r;return D(n)&&(r=n,s.splice(s.length-1,1)),n=new Promise(function(o){setTimeout(function(){i.h[++wa]=o,i.o.postMessage({task:e,id:wa,args:s})})}),r?(n.then(r),this):n}}function xa(a,b,c){let d;try{d=b?eval('new (require("worker_threads")["Worker"])("../dist/node/node.js")'):a?new Worker(URL.createObjectURL(new Blob(["onmessage="+va.toString()],{type:"text/javascript"}))):new Worker(x(c)?c:"worker/worker.js",{type:"module"})}catch(e){}return d}function Q(e){if(!(this instanceof Q))return new Q(e);var i=e.document||e.doc||e,s;this.K=[],this.h=[],this.A=[],this.register=v(),this.key=(s=i.key||i.id)&&S(s,this.A)||"id",this.m=u(e.fastupdate),this.C=(s=i.store)&&s!==!0&&[],this.store=s&&v(),this.I=(s=i.tag)&&S(s,this.A),this.l=s&&v(),this.cache=(s=e.cache)&&new J(s),e.cache=!1,this.o=e.worker,this.async=!1,s=v();let n=i.index||i.field||i;x(n)&&(n=[n]);for(let r=0,o,f;r<n.length;r++)o=n[r],x(o)||(f=o,o=o.field),f=C(f)?Object.assign({},e,f):e,this.o&&(s[o]=new O(f),s[o].o||(this.o=!1)),this.o||(s[o]=new K(f,this.register)),this.K[r]=S(o,this.A),this.h[r]=o;if(this.C)for(e=i.store,x(e)&&(e=[e]),i=0;i<e.length;i++)this.C[i]=S(e[i],this.A);this.index=s}function S(e,i){const s=e.split(":");let n=0;for(let r=0;r<s.length;r++)e=s[r],0<=e.indexOf("[]")&&(e=e.substring(0,e.length-2))&&(i[n]=!0),e&&(s[n++]=e);return n<s.length&&(s.length=n),1<n?s:s[0]}function T(e,i){if(x(i))e=e[i];else for(let s=0;e&&s<i.length;s++)e=e[i[s]];return e}function U(e,i,s,n,r){if(e=e[r],n===s.length-1)i[r]=e;else if(e)if(e.constructor===Array)for(i=i[r]=Array(e.length),r=0;r<e.length;r++)U(e,i,s,n,r);else i=i[r]||(i[r]=v()),r=s[++n],U(e,i,s,n,r)}function V(e,i,s,n,r,o,f,g){if(e=e[f])if(n===i.length-1){if(e.constructor===Array){if(s[n]){for(i=0;i<e.length;i++)r.add(o,e[i],!0,!0);return}e=e.join(" ")}r.add(o,e,g,!0)}else if(e.constructor===Array)for(f=0;f<e.length;f++)V(e,i,s,n,r,o,f,g);else f=i[++n],V(e,i,s,n,r,o,f,g)}t=Q.prototype,t.add=function(e,i,s){if(C(e)&&(i=e,e=T(i,this.key)),i&&(e||e===0)){if(!s&&this.register[e])return this.update(e,i);for(let n=0,r,o;n<this.h.length;n++)o=this.h[n],r=this.K[n],x(r)&&(r=[r]),V(i,r,this.A,0,this.index[o],e,r[0],s);if(this.I){let n=T(i,this.I),r=v();x(n)&&(n=[n]);for(let o=0,f,g;o<n.length;o++)if(f=n[o],!r[f]&&(r[f]=1,g=this.l[f]||(this.l[f]=[]),!s||g.indexOf(e)===-1)&&(g[g.length]=e,this.m)){const m=this.register[e]||(this.register[e]=[]);m[m.length]=g}}if(this.store&&(!s||!this.store[e])){let n;if(this.C){n=v();for(let r=0,o;r<this.C.length;r++)o=this.C[r],x(o)?n[o]=i[o]:U(i,n,o,0,o[0])}this.store[e]=n||i}}return this},t.append=function(e,i){return this.add(e,i,!0)},t.update=function(e,i){return this.remove(e).add(e,i)},t.remove=function(e){if(C(e)&&(e=T(e,this.key)),this.register[e]){for(var i=0;i<this.h.length&&(this.index[this.h[i]].remove(e,!this.o),!this.m);i++);if(this.I&&!this.m)for(let s in this.l){i=this.l[s];const n=i.indexOf(e);n!==-1&&(1<i.length?i.splice(n,1):delete this.l[s])}this.store&&delete this.store[e],delete this.register[e]}return this},t.search=function(e,i,s,n){s||(!i&&C(e)?(s=e,e=s.query):C(i)&&(s=i,i=0));let r=[],o=[],f,g,m,A,j,z,w=0;if(s)if(s.constructor===Array)m=s,s=null;else{if(m=(f=s.pluck)||s.index||s.field,A=s.tag,g=this.store&&s.enrich,j=s.bool==="and",i=s.limit||100,z=s.offset||0,A&&(x(A)&&(A=[A]),!e)){for(let k=0,X;k<A.length;k++)(X=ya.call(this,A[k],i,z,g))&&(r[r.length]=X,w++);return w?r:[]}x(m)&&(m=[m])}m||(m=this.h),j=j&&(1<m.length||A&&1<A.length);const H=!n&&(this.o||this.async)&&[];for(let k=0,X,ae,ue;k<m.length;k++){let q;if(ae=m[k],x(ae)||(q=ae,ae=ae.field),H)H[k]=this.index[ae].searchAsync(e,i,q||s);else{if(n?X=n[k]:X=this.index[ae].search(e,i,q||s),ue=X&&X.length,A&&ue){const te=[];let oe=0;j&&(te[0]=[X]);for(let ie=0,pe,fe;ie<A.length;ie++)pe=A[ie],(ue=(fe=this.l[pe])&&fe.length)&&(oe++,te[te.length]=j?[fe]:fe);oe&&(X=j?ma(te,i||100,z||0):na(X,te),ue=X.length)}if(ue)o[w]=ae,r[w++]=X;else if(j)return[]}}if(H){const k=this;return new Promise(function(X){Promise.all(H).then(function(ae){X(k.search(e,i,s,ae))})})}if(!w)return[];if(f&&(!g||!this.store))return r[0];for(let k=0,X;k<o.length;k++){if(X=r[k],X.length&&g&&(X=za.call(this,X)),f)return X;r[k]={field:o[k],result:X}}return r};function ya(e,i,s,n){let r=this.l[e],o=r&&r.length-s;if(o&&0<o)return(o>i||s)&&(r=r.slice(s,s+i)),n&&(r=za.call(this,r)),{tag:e,result:r}}function za(e){const i=Array(e.length);for(let s=0,n;s<e.length;s++)n=e[s],i[s]={id:n,doc:this.store[n]};return i}t.contain=function(e){return!!this.register[e]},t.get=function(e){return this.store[e]},t.set=function(e,i){return this.store[e]=i,this},t.searchCache=oa,t.export=function(e,i,s,n,r){if(r||(r=0),n||(n=0),n<this.h.length){const o=this.h[n],f=this.index[o];i=this,setTimeout(function(){f.export(e,i,r?o.replace(":","-"):"",n,r++)||(n++,r=1,i.export(e,i,o,n,r))})}else{let o;switch(r){case 1:s="tag",o=this.l;break;case 2:s="store",o=this.store;break;default:return}ra(e,this,s,n,r,o)}},t.import=function(e,i){if(i)switch(x(i)&&(i=JSON.parse(i)),e){case"tag":this.l=i;break;case"reg":this.m=!1,this.register=i;for(let n=0,r;n<this.h.length;n++)r=this.index[this.h[n]],r.register=i,r.m=!1;break;case"store":this.store=i;break;default:e=e.split(".");const s=e[0];e=e[1],s&&e&&this.index[s].import(e,i)}},la(Q.prototype);var Ba={encode:Aa,F:!1,G:""};const Ca=[F("[àáâãäå]"),"a",F("[èéêë]"),"e",F("[ìíîï]"),"i",F("[òóôõöő]"),"o",F("[ùúûüű]"),"u",F("[ýŷÿ]"),"y",F("ñ"),"n",F("[çc]"),"k",F("ß"),"s",F(" & ")," and "];function Aa(e){var i=e;return i.normalize&&(i=i.normalize("NFD").replace(ea,"")),ca.call(this,i.toLowerCase(),!e.normalize&&Ca)}var Ea={encode:Da,F:!1,G:"strict"};const Fa=/[^a-z0-9]+/,Ga={b:"p",v:"f",w:"f",z:"s",x:"s",ß:"s",d:"t",n:"m",c:"k",g:"k",j:"k",q:"k",i:"e",y:"e",u:"o"};function Da(e){e=Aa.call(this,e).join(" ");const i=[];if(e){const s=e.split(Fa),n=s.length;for(let r=0,o,f=0;r<n;r++)if((e=s[r])&&(!this.filter||!this.filter[e])){o=e[0];let g=Ga[o]||o,m=g;for(let A=1;A<e.length;A++){o=e[A];const j=Ga[o]||o;j&&j!==m&&(g+=j,m=j)}i[f++]=g}}return i}var Ia={encode:Ha,F:!1,G:""};const Ja=[F("ae"),"a",F("oe"),"o",F("sh"),"s",F("th"),"t",F("ph"),"f",F("pf"),"f",F("(?![aeo])h(?![aeo])"),"",F("(?!^[aeo])h(?!^[aeo])"),""];function Ha(e,i){return e&&(e=Da.call(this,e).join(" "),2<e.length&&(e=E(e,Ja)),i||(1<e.length&&(e=ha(e)),e&&(e=e.split(" ")))),e}var La={encode:Ka,F:!1,G:""};const Ma=F("(?!\\b)[aeo]");function Ka(e){return e&&(e=Ha.call(this,e,!0),1<e.length&&(e=e.replace(Ma,"")),1<e.length&&(e=ha(e)),e&&(e=e.split(" "))),e}G["latin:default"]=ja,G["latin:simple"]=Ba,G["latin:balance"]=Ea,G["latin:advanced"]=Ia,G["latin:extra"]=La;const W=self;let Y;const Z={Index:K,Document:Q,Worker:O,registerCharset:function(e,i){G[e]=i},registerLanguage:function(e,i){ka[e]=i}};(Y=W.define)&&Y.amd?Y([],function(){return Z}):W.exports?W.exports=Z:W.FlexSearch=Z})(commonjsGlobal)})(flexsearch_bundle);var flexsearch_bundleExports=flexsearch_bundle.exports,isCheckBoxInput=e=>e.type==="checkbox",isDateObject=e=>e instanceof Date,isNullOrUndefined=e=>e==null;const isObjectType=e=>typeof e=="object";var isObject=e=>!isNullOrUndefined(e)&&!Array.isArray(e)&&isObjectType(e)&&!isDateObject(e),getEventValue=e=>isObject(e)&&e.target?isCheckBoxInput(e.target)?e.target.checked:e.target.value:e,getNodeParentName=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,isNameInFieldArray=(e,i)=>e.has(getNodeParentName(i)),isPlainObject=e=>{const i=e.constructor&&e.constructor.prototype;return isObject(i)&&i.hasOwnProperty("isPrototypeOf")},isWeb=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function cloneObject(e){let i;const s=Array.isArray(e);if(e instanceof Date)i=new Date(e);else if(e instanceof Set)i=new Set(e);else if(!(isWeb&&(e instanceof Blob||e instanceof FileList))&&(s||isObject(e)))if(i=s?[]:{},!Array.isArray(e)&&!isPlainObject(e))i=e;else for(const n in e)i[n]=cloneObject(e[n]);else return e;return i}var compact=e=>Array.isArray(e)?e.filter(Boolean):[],isUndefined=e=>e===void 0,get=(e,i,s)=>{if(!i||!isObject(e))return s;const n=compact(i.split(/[,[\].]+?/)).reduce((r,o)=>isNullOrUndefined(r)?r:r[o],e);return isUndefined(n)||n===e?isUndefined(e[i])?s:e[i]:n};const EVENTS={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},VALIDATION_MODE={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},INPUT_VALIDATION_RULES={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};React.createContext(null);var getProxyFormState=(e,i,s,n=!0)=>{const r={defaultValues:i._defaultValues};for(const o in e)Object.defineProperty(r,o,{get:()=>{const f=o;return i._proxyFormState[f]!==VALIDATION_MODE.all&&(i._proxyFormState[f]=!n||VALIDATION_MODE.all),s&&(s[f]=!0),e[f]}});return r},isEmptyObject=e=>isObject(e)&&!Object.keys(e).length,shouldRenderFormState=(e,i,s,n)=>{s(e);const{name:r,...o}=e;return isEmptyObject(o)||Object.keys(o).length>=Object.keys(i).length||Object.keys(o).find(f=>i[f]===(!n||VALIDATION_MODE.all))},convertToArrayPayload=e=>Array.isArray(e)?e:[e];function useSubscribe(e){const i=React.useRef(e);i.current=e,React.useEffect(()=>{const s=!e.disabled&&i.current.subject&&i.current.subject.subscribe({next:i.current.next});return()=>{s&&s.unsubscribe()}},[e.disabled])}var isString=e=>typeof e=="string",generateWatchOutput=(e,i,s,n,r)=>isString(e)?(n&&i.watch.add(e),get(s,e,r)):Array.isArray(e)?e.map(o=>(n&&i.watch.add(o),get(s,o))):(n&&(i.watchAll=!0),s),isKey=e=>/^\w*$/.test(e),stringToPath=e=>compact(e.replace(/["|']|\]/g,"").split(/\.|\[/));function set(e,i,s){let n=-1;const r=isKey(i)?[i]:stringToPath(i),o=r.length,f=o-1;for(;++n<o;){const g=r[n];let m=s;if(n!==f){const A=e[g];m=isObject(A)||Array.isArray(A)?A:isNaN(+r[n+1])?{}:[]}e[g]=m,e=e[g]}return e}var appendErrors=(e,i,s,n,r)=>i?{...s[e],types:{...s[e]&&s[e].types?s[e].types:{},[n]:r||!0}}:{};const focusFieldBy=(e,i,s)=>{for(const n of s||Object.keys(e)){const r=get(e,n);if(r){const{_f:o,...f}=r;if(o&&i(o.name)){if(o.ref.focus){o.ref.focus();break}else if(o.refs&&o.refs[0].focus){o.refs[0].focus();break}}else isObject(f)&&focusFieldBy(f,i)}}};var getValidationModes=e=>({isOnSubmit:!e||e===VALIDATION_MODE.onSubmit,isOnBlur:e===VALIDATION_MODE.onBlur,isOnChange:e===VALIDATION_MODE.onChange,isOnAll:e===VALIDATION_MODE.all,isOnTouch:e===VALIDATION_MODE.onTouched}),isWatched=(e,i,s)=>!s&&(i.watchAll||i.watch.has(e)||[...i.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length)))),updateFieldArrayRootError=(e,i,s)=>{const n=compact(get(e,s));return set(n,"root",i[s]),set(e,s,n),e},isBoolean=e=>typeof e=="boolean",isFileInput=e=>e.type==="file",isFunction=e=>typeof e=="function",isHTMLElement=e=>{if(!isWeb)return!1;const i=e?e.ownerDocument:0;return e instanceof(i&&i.defaultView?i.defaultView.HTMLElement:HTMLElement)},isMessage=e=>isString(e),isRadioInput=e=>e.type==="radio",isRegex=e=>e instanceof RegExp;const defaultResult={value:!1,isValid:!1},validResult={value:!0,isValid:!0};var getCheckboxValue=e=>{if(Array.isArray(e)){if(e.length>1){const i=e.filter(s=>s&&s.checked&&!s.disabled).map(s=>s.value);return{value:i,isValid:!!i.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!isUndefined(e[0].attributes.value)?isUndefined(e[0].value)||e[0].value===""?validResult:{value:e[0].value,isValid:!0}:validResult:defaultResult}return defaultResult};const defaultReturn={isValid:!1,value:null};var getRadioValue=e=>Array.isArray(e)?e.reduce((i,s)=>s&&s.checked&&!s.disabled?{isValid:!0,value:s.value}:i,defaultReturn):defaultReturn;function getValidateError(e,i,s="validate"){if(isMessage(e)||Array.isArray(e)&&e.every(isMessage)||isBoolean(e)&&!e)return{type:s,message:isMessage(e)?e:"",ref:i}}var getValueAndMessage=e=>isObject(e)&&!isRegex(e)?e:{value:e,message:""},validateField=async(e,i,s,n,r)=>{const{ref:o,refs:f,required:g,maxLength:m,minLength:A,min:j,max:z,pattern:w,validate:H,name:k,valueAsNumber:X,mount:ae,disabled:ue}=e._f,q=get(i,k);if(!ae||ue)return{};const te=f?f[0]:o,oe=ee=>{n&&te.reportValidity&&(te.setCustomValidity(isBoolean(ee)?"":ee||""),te.reportValidity())},ie={},pe=isRadioInput(o),fe=isCheckBoxInput(o),xe=pe||fe,de=(X||isFileInput(o))&&isUndefined(o.value)&&isUndefined(q)||isHTMLElement(o)&&o.value===""||q===""||Array.isArray(q)&&!q.length,me=appendErrors.bind(null,k,s,ie),ge=(ee,$,ne,le=INPUT_VALIDATION_RULES.maxLength,ce=INPUT_VALIDATION_RULES.minLength)=>{const he=ee?$:ne;ie[k]={type:ee?le:ce,message:he,ref:o,...me(ee?le:ce,he)}};if(r?!Array.isArray(q)||!q.length:g&&(!xe&&(de||isNullOrUndefined(q))||isBoolean(q)&&!q||fe&&!getCheckboxValue(f).isValid||pe&&!getRadioValue(f).isValid)){const{value:ee,message:$}=isMessage(g)?{value:!!g,message:g}:getValueAndMessage(g);if(ee&&(ie[k]={type:INPUT_VALIDATION_RULES.required,message:$,ref:te,...me(INPUT_VALIDATION_RULES.required,$)},!s))return oe($),ie}if(!de&&(!isNullOrUndefined(j)||!isNullOrUndefined(z))){let ee,$;const ne=getValueAndMessage(z),le=getValueAndMessage(j);if(!isNullOrUndefined(q)&&!isNaN(q)){const ce=o.valueAsNumber||q&&+q;isNullOrUndefined(ne.value)||(ee=ce>ne.value),isNullOrUndefined(le.value)||($=ce<le.value)}else{const ce=o.valueAsDate||new Date(q),he=Ae=>new Date(new Date().toDateString()+" "+Ae),ve=o.type=="time",be=o.type=="week";isString(ne.value)&&q&&(ee=ve?he(q)>he(ne.value):be?q>ne.value:ce>new Date(ne.value)),isString(le.value)&&q&&($=ve?he(q)<he(le.value):be?q<le.value:ce<new Date(le.value))}if((ee||$)&&(ge(!!ee,ne.message,le.message,INPUT_VALIDATION_RULES.max,INPUT_VALIDATION_RULES.min),!s))return oe(ie[k].message),ie}if((m||A)&&!de&&(isString(q)||r&&Array.isArray(q))){const ee=getValueAndMessage(m),$=getValueAndMessage(A),ne=!isNullOrUndefined(ee.value)&&q.length>+ee.value,le=!isNullOrUndefined($.value)&&q.length<+$.value;if((ne||le)&&(ge(ne,ee.message,$.message),!s))return oe(ie[k].message),ie}if(w&&!de&&isString(q)){const{value:ee,message:$}=getValueAndMessage(w);if(isRegex(ee)&&!q.match(ee)&&(ie[k]={type:INPUT_VALIDATION_RULES.pattern,message:$,ref:o,...me(INPUT_VALIDATION_RULES.pattern,$)},!s))return oe($),ie}if(H){if(isFunction(H)){const ee=await H(q,i),$=getValidateError(ee,te);if($&&(ie[k]={...$,...me(INPUT_VALIDATION_RULES.validate,$.message)},!s))return oe($.message),ie}else if(isObject(H)){let ee={};for(const $ in H){if(!isEmptyObject(ee)&&!s)break;const ne=getValidateError(await H[$](q,i),te,$);ne&&(ee={...ne,...me($,ne.message)},oe(ne.message),s&&(ie[k]=ee))}if(!isEmptyObject(ee)&&(ie[k]={ref:te,...ee},!s))return ie}}return oe(!0),ie};function baseGet(e,i){const s=i.slice(0,-1).length;let n=0;for(;n<s;)e=isUndefined(e)?n++:e[i[n++]];return e}function isEmptyArray(e){for(const i in e)if(!isUndefined(e[i]))return!1;return!0}function unset(e,i){const s=Array.isArray(i)?i:isKey(i)?[i]:stringToPath(i),n=s.length===1?e:baseGet(e,s),r=s.length-1,o=s[r];return n&&delete n[o],r!==0&&(isObject(n)&&isEmptyObject(n)||Array.isArray(n)&&isEmptyArray(n))&&unset(e,s.slice(0,-1)),e}function createSubject(){let e=[];return{get observers(){return e},next:r=>{for(const o of e)o.next&&o.next(r)},subscribe:r=>(e.push(r),{unsubscribe:()=>{e=e.filter(o=>o!==r)}}),unsubscribe:()=>{e=[]}}}var isPrimitive=e=>isNullOrUndefined(e)||!isObjectType(e);function deepEqual(e,i){if(isPrimitive(e)||isPrimitive(i))return e===i;if(isDateObject(e)&&isDateObject(i))return e.getTime()===i.getTime();const s=Object.keys(e),n=Object.keys(i);if(s.length!==n.length)return!1;for(const r of s){const o=e[r];if(!n.includes(r))return!1;if(r!=="ref"){const f=i[r];if(isDateObject(o)&&isDateObject(f)||isObject(o)&&isObject(f)||Array.isArray(o)&&Array.isArray(f)?!deepEqual(o,f):o!==f)return!1}}return!0}var isMultipleSelect=e=>e.type==="select-multiple",isRadioOrCheckbox=e=>isRadioInput(e)||isCheckBoxInput(e),live=e=>isHTMLElement(e)&&e.isConnected,objectHasFunction=e=>{for(const i in e)if(isFunction(e[i]))return!0;return!1};function markFieldsDirty(e,i={}){const s=Array.isArray(e);if(isObject(e)||s)for(const n in e)Array.isArray(e[n])||isObject(e[n])&&!objectHasFunction(e[n])?(i[n]=Array.isArray(e[n])?[]:{},markFieldsDirty(e[n],i[n])):isNullOrUndefined(e[n])||(i[n]=!0);return i}function getDirtyFieldsFromDefaultValues(e,i,s){const n=Array.isArray(e);if(isObject(e)||n)for(const r in e)Array.isArray(e[r])||isObject(e[r])&&!objectHasFunction(e[r])?isUndefined(i)||isPrimitive(s[r])?s[r]=Array.isArray(e[r])?markFieldsDirty(e[r],[]):{...markFieldsDirty(e[r])}:getDirtyFieldsFromDefaultValues(e[r],isNullOrUndefined(i)?{}:i[r],s[r]):s[r]=!deepEqual(e[r],i[r]);return s}var getDirtyFields=(e,i)=>getDirtyFieldsFromDefaultValues(e,i,markFieldsDirty(i)),getFieldValueAs=(e,{valueAsNumber:i,valueAsDate:s,setValueAs:n})=>isUndefined(e)?e:i?e===""?NaN:e&&+e:s&&isString(e)?new Date(e):n?n(e):e;function getFieldValue(e){const i=e.ref;if(!(e.refs?e.refs.every(s=>s.disabled):i.disabled))return isFileInput(i)?i.files:isRadioInput(i)?getRadioValue(e.refs).value:isMultipleSelect(i)?[...i.selectedOptions].map(({value:s})=>s):isCheckBoxInput(i)?getCheckboxValue(e.refs).value:getFieldValueAs(isUndefined(i.value)?e.ref.value:i.value,e)}var getResolverOptions=(e,i,s,n)=>{const r={};for(const o of e){const f=get(i,o);f&&set(r,o,f._f)}return{criteriaMode:s,names:[...e],fields:r,shouldUseNativeValidation:n}},getRuleValue=e=>isUndefined(e)?e:isRegex(e)?e.source:isObject(e)?isRegex(e.value)?e.value.source:e.value:e,hasValidation=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function schemaErrorLookup(e,i,s){const n=get(e,s);if(n||isKey(s))return{error:n,name:s};const r=s.split(".");for(;r.length;){const o=r.join("."),f=get(i,o),g=get(e,o);if(f&&!Array.isArray(f)&&s!==o)return{name:s};if(g&&g.type)return{name:o,error:g};r.pop()}return{name:s}}var skipValidation=(e,i,s,n,r)=>r.isOnAll?!1:!s&&r.isOnTouch?!(i||e):(s?n.isOnBlur:r.isOnBlur)?!e:(s?n.isOnChange:r.isOnChange)?e:!0,unsetEmptyArray=(e,i)=>!compact(get(e,i)).length&&unset(e,i);const defaultOptions={mode:VALIDATION_MODE.onSubmit,reValidateMode:VALIDATION_MODE.onChange,shouldFocusError:!0};function createFormControl(e={},i){let s={...defaultOptions,...e},n={submitCount:0,isDirty:!1,isLoading:isFunction(s.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},r={},o=isObject(s.defaultValues)||isObject(s.values)?cloneObject(s.defaultValues||s.values)||{}:{},f=s.shouldUnregister?{}:cloneObject(o),g={action:!1,mount:!1,watch:!1},m={mount:new Set,unMount:new Set,array:new Set,watch:new Set},A,j=0;const z={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},w={values:createSubject(),array:createSubject(),state:createSubject()},H=e.resetOptions&&e.resetOptions.keepDirtyValues,k=getValidationModes(s.mode),X=getValidationModes(s.reValidateMode),ae=s.criteriaMode===VALIDATION_MODE.all,ue=l=>h=>{clearTimeout(j),j=setTimeout(l,h)},q=async l=>{if(z.isValid||l){const h=s.resolver?isEmptyObject((await de()).errors):await ge(r,!0);h!==n.isValid&&w.state.next({isValid:h})}},te=l=>z.isValidating&&w.state.next({isValidating:l}),oe=(l,h=[],p,R,_=!0,y=!0)=>{if(R&&p){if(g.action=!0,y&&Array.isArray(get(r,l))){const B=p(get(r,l),R.argA,R.argB);_&&set(r,l,B)}if(y&&Array.isArray(get(n.errors,l))){const B=p(get(n.errors,l),R.argA,R.argB);_&&set(n.errors,l,B),unsetEmptyArray(n.errors,l)}if(z.touchedFields&&y&&Array.isArray(get(n.touchedFields,l))){const B=p(get(n.touchedFields,l),R.argA,R.argB);_&&set(n.touchedFields,l,B)}z.dirtyFields&&(n.dirtyFields=getDirtyFields(o,f)),w.state.next({name:l,isDirty:$(l,h),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else set(f,l,h)},ie=(l,h)=>{set(n.errors,l,h),w.state.next({errors:n.errors})},pe=(l,h,p,R)=>{const _=get(r,l);if(_){const y=get(f,l,isUndefined(p)?get(o,l):p);isUndefined(y)||R&&R.defaultChecked||h?set(f,l,h?y:getFieldValue(_._f)):ce(l,y),g.mount&&q()}},fe=(l,h,p,R,_)=>{let y=!1,B=!1;const se={name:l};if(!p||R){z.isDirty&&(B=n.isDirty,n.isDirty=se.isDirty=$(),y=B!==se.isDirty);const re=deepEqual(get(o,l),h);B=get(n.dirtyFields,l),re?unset(n.dirtyFields,l):set(n.dirtyFields,l,!0),se.dirtyFields=n.dirtyFields,y=y||z.dirtyFields&&B!==!re}if(p){const re=get(n.touchedFields,l);re||(set(n.touchedFields,l,p),se.touchedFields=n.touchedFields,y=y||z.touchedFields&&re!==p)}return y&&_&&w.state.next(se),y?se:{}},xe=(l,h,p,R)=>{const _=get(n.errors,l),y=z.isValid&&isBoolean(h)&&n.isValid!==h;if(e.delayError&&p?(A=ue(()=>ie(l,p)),A(e.delayError)):(clearTimeout(j),A=null,p?set(n.errors,l,p):unset(n.errors,l)),(p?!deepEqual(_,p):_)||!isEmptyObject(R)||y){const B={...R,...y&&isBoolean(h)?{isValid:h}:{},errors:n.errors,name:l};n={...n,...B},w.state.next(B)}te(!1)},de=async l=>s.resolver(f,s.context,getResolverOptions(l||m.mount,r,s.criteriaMode,s.shouldUseNativeValidation)),me=async l=>{const{errors:h}=await de();if(l)for(const p of l){const R=get(h,p);R?set(n.errors,p,R):unset(n.errors,p)}else n.errors=h;return h},ge=async(l,h,p={valid:!0})=>{for(const R in l){const _=l[R];if(_){const{_f:y,...B}=_;if(y){const se=m.array.has(y.name),re=await validateField(_,f,ae,s.shouldUseNativeValidation&&!h,se);if(re[y.name]&&(p.valid=!1,h))break;!h&&(get(re,y.name)?se?updateFieldArrayRootError(n.errors,re,y.name):set(n.errors,y.name,re[y.name]):unset(n.errors,y.name))}B&&await ge(B,h,p)}}return p.valid},ee=()=>{for(const l of m.unMount){const h=get(r,l);h&&(h._f.refs?h._f.refs.every(p=>!live(p)):!live(h._f.ref))&&ke(l)}m.unMount=new Set},$=(l,h)=>(l&&h&&set(f,l,h),!deepEqual(we(),o)),ne=(l,h,p)=>generateWatchOutput(l,m,{...g.mount?f:isUndefined(h)?o:isString(l)?{[l]:h}:h},p,h),le=l=>compact(get(g.mount?f:o,l,e.shouldUnregister?get(o,l,[]):[])),ce=(l,h,p={})=>{const R=get(r,l);let _=h;if(R){const y=R._f;y&&(!y.disabled&&set(f,l,getFieldValueAs(h,y)),_=isHTMLElement(y.ref)&&isNullOrUndefined(h)?"":h,isMultipleSelect(y.ref)?[...y.ref.options].forEach(B=>B.selected=_.includes(B.value)):y.refs?isCheckBoxInput(y.ref)?y.refs.length>1?y.refs.forEach(B=>(!B.defaultChecked||!B.disabled)&&(B.checked=Array.isArray(_)?!!_.find(se=>se===B.value):_===B.value)):y.refs[0]&&(y.refs[0].checked=!!_):y.refs.forEach(B=>B.checked=B.value===_):isFileInput(y.ref)?y.ref.value="":(y.ref.value=_,y.ref.type||w.values.next({name:l,values:{...f}})))}(p.shouldDirty||p.shouldTouch)&&fe(l,_,p.shouldTouch,p.shouldDirty,!0),p.shouldValidate&&Ae(l)},he=(l,h,p)=>{for(const R in h){const _=h[R],y=`${l}.${R}`,B=get(r,y);(m.array.has(l)||!isPrimitive(_)||B&&!B._f)&&!isDateObject(_)?he(y,_,p):ce(y,_,p)}},ve=(l,h,p={})=>{const R=get(r,l),_=m.array.has(l),y=cloneObject(h);set(f,l,y),_?(w.array.next({name:l,values:{...f}}),(z.isDirty||z.dirtyFields)&&p.shouldDirty&&w.state.next({name:l,dirtyFields:getDirtyFields(o,f),isDirty:$(l,y)})):R&&!R._f&&!isNullOrUndefined(y)?he(l,y,p):ce(l,y,p),isWatched(l,m)&&w.state.next({...n}),w.values.next({name:l,values:{...f}}),!g.mount&&i()},be=async l=>{const h=l.target;let p=h.name,R=!0;const _=get(r,p),y=()=>h.type?getFieldValue(_._f):getEventValue(l);if(_){let B,se;const re=y(),ye=l.type===EVENTS.BLUR||l.type===EVENTS.FOCUS_OUT,ze=!hasValidation(_._f)&&!s.resolver&&!get(n.errors,p)&&!_._f.deps||skipValidation(ye,get(n.touchedFields,p),n.isSubmitted,X,k),_e=isWatched(p,m,ye);set(f,p,re),ye?(_._f.onBlur&&_._f.onBlur(l),A&&A(0)):_._f.onChange&&_._f.onChange(l);const Oe=fe(p,re,ye,!1),qe=!isEmptyObject(Oe)||_e;if(!ye&&w.values.next({name:p,type:l.type,values:{...f}}),ze)return z.isValid&&q(),qe&&w.state.next({name:p,..._e?{}:Oe});if(!ye&&_e&&w.state.next({...n}),te(!0),s.resolver){const{errors:Ve}=await de([p]),Ke=schemaErrorLookup(n.errors,r,p),Ie=schemaErrorLookup(Ve,r,Ke.name||p);B=Ie.error,p=Ie.name,se=isEmptyObject(Ve)}else B=(await validateField(_,f,ae,s.shouldUseNativeValidation))[p],R=isNaN(re)||re===get(f,p,re),R&&(B?se=!1:z.isValid&&(se=await ge(r,!0)));R&&(_._f.deps&&Ae(_._f.deps),xe(p,se,B,Oe))}},Ae=async(l,h={})=>{let p,R;const _=convertToArrayPayload(l);if(te(!0),s.resolver){const y=await me(isUndefined(l)?l:_);p=isEmptyObject(y),R=l?!_.some(B=>get(y,B)):p}else l?(R=(await Promise.all(_.map(async y=>{const B=get(r,y);return await ge(B&&B._f?{[y]:B}:B)}))).every(Boolean),!(!R&&!n.isValid)&&q()):R=p=await ge(r);return w.state.next({...!isString(l)||z.isValid&&p!==n.isValid?{}:{name:l},...s.resolver||!l?{isValid:p}:{},errors:n.errors,isValidating:!1}),h.shouldFocus&&!R&&focusFieldBy(r,y=>y&&get(n.errors,y),l?_:m.mount),R},we=l=>{const h={...o,...g.mount?f:{}};return isUndefined(l)?h:isString(l)?get(h,l):l.map(p=>get(h,p))},Fe=(l,h)=>({invalid:!!get((h||n).errors,l),isDirty:!!get((h||n).dirtyFields,l),isTouched:!!get((h||n).touchedFields,l),error:get((h||n).errors,l)}),je=l=>{l&&convertToArrayPayload(l).forEach(h=>unset(n.errors,h)),w.state.next({errors:l?n.errors:{}})},Ue=(l,h,p)=>{const R=(get(r,l,{_f:{}})._f||{}).ref;set(n.errors,l,{...h,ref:R}),w.state.next({name:l,errors:n.errors,isValid:!1}),p&&p.shouldFocus&&R&&R.focus&&R.focus()},Be=(l,h)=>isFunction(l)?w.values.subscribe({next:p=>l(ne(void 0,h),p)}):ne(l,h,!0),ke=(l,h={})=>{for(const p of l?convertToArrayPayload(l):m.mount)m.mount.delete(p),m.array.delete(p),h.keepValue||(unset(r,p),unset(f,p)),!h.keepError&&unset(n.errors,p),!h.keepDirty&&unset(n.dirtyFields,p),!h.keepTouched&&unset(n.touchedFields,p),!s.shouldUnregister&&!h.keepDefaultValue&&unset(o,p);w.values.next({values:{...f}}),w.state.next({...n,...h.keepDirty?{isDirty:$()}:{}}),!h.keepIsValid&&q()},Ce=(l,h={})=>{let p=get(r,l);const R=isBoolean(h.disabled);return set(r,l,{...p||{},_f:{...p&&p._f?p._f:{ref:{name:l}},name:l,mount:!0,...h}}),m.mount.add(l),p?R&&set(f,l,h.disabled?void 0:get(f,l,getFieldValue(p._f))):pe(l,!0,h.value),{...R?{disabled:h.disabled}:{},...s.shouldUseNativeValidation?{required:!!h.required,min:getRuleValue(h.min),max:getRuleValue(h.max),minLength:getRuleValue(h.minLength),maxLength:getRuleValue(h.maxLength),pattern:getRuleValue(h.pattern)}:{},name:l,onChange:be,onBlur:be,ref:_=>{if(_){Ce(l,h),p=get(r,l);const y=isUndefined(_.value)&&_.querySelectorAll&&_.querySelectorAll("input,select,textarea")[0]||_,B=isRadioOrCheckbox(y),se=p._f.refs||[];if(B?se.find(re=>re===y):y===p._f.ref)return;set(r,l,{_f:{...p._f,...B?{refs:[...se.filter(live),y,...Array.isArray(get(o,l))?[{}]:[]],ref:{type:y.type,name:l}}:{ref:y}}}),pe(l,!1,void 0,y)}else p=get(r,l,{}),p._f&&(p._f.mount=!1),(s.shouldUnregister||h.shouldUnregister)&&!(isNameInFieldArray(m.array,l)&&g.action)&&m.unMount.add(l)}}},De=()=>s.shouldFocusError&&focusFieldBy(r,l=>l&&get(n.errors,l),m.mount),We=(l,h)=>async p=>{p&&(p.preventDefault&&p.preventDefault(),p.persist&&p.persist());let R=cloneObject(f);if(w.state.next({isSubmitting:!0}),s.resolver){const{errors:_,values:y}=await de();n.errors=_,R=y}else await ge(r);unset(n.errors,"root"),isEmptyObject(n.errors)?(w.state.next({errors:{}}),await l(R,p)):(h&&await h({...n.errors},p),De(),setTimeout(De)),w.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:isEmptyObject(n.errors),submitCount:n.submitCount+1,errors:n.errors})},Je=(l,h={})=>{get(r,l)&&(isUndefined(h.defaultValue)?ve(l,get(o,l)):(ve(l,h.defaultValue),set(o,l,h.defaultValue)),h.keepTouched||unset(n.touchedFields,l),h.keepDirty||(unset(n.dirtyFields,l),n.isDirty=h.defaultValue?$(l,get(o,l)):$()),h.keepError||(unset(n.errors,l),z.isValid&&q()),w.state.next({...n}))},Le=(l,h={})=>{const p=l||o,R=cloneObject(p),_=l&&!isEmptyObject(l)?R:o;if(h.keepDefaultValues||(o=p),!h.keepValues){if(h.keepDirtyValues||H)for(const y of m.mount)get(n.dirtyFields,y)?set(_,y,get(f,y)):ve(y,get(_,y));else{if(isWeb&&isUndefined(l))for(const y of m.mount){const B=get(r,y);if(B&&B._f){const se=Array.isArray(B._f.refs)?B._f.refs[0]:B._f.ref;if(isHTMLElement(se)){const re=se.closest("form");if(re){re.reset();break}}}}r={}}f=e.shouldUnregister?h.keepDefaultValues?cloneObject(o):{}:R,w.array.next({values:{..._}}),w.values.next({values:{..._}})}m={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!g.mount&&i(),g.mount=!z.isValid||!!h.keepIsValid,g.watch=!!e.shouldUnregister,w.state.next({submitCount:h.keepSubmitCount?n.submitCount:0,isDirty:h.keepDirty?n.isDirty:!!(h.keepDefaultValues&&!deepEqual(l,o)),isSubmitted:h.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:h.keepDirtyValues?n.dirtyFields:h.keepDefaultValues&&l?getDirtyFields(o,l):{},touchedFields:h.keepTouched?n.touchedFields:{},errors:h.keepErrors?n.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},Ee=(l,h)=>Le(isFunction(l)?l(f):l,h);return{control:{register:Ce,unregister:ke,getFieldState:Fe,_executeSchema:de,_getWatch:ne,_getDirty:$,_updateValid:q,_removeUnmounted:ee,_updateFieldArray:oe,_getFieldArray:le,_reset:Le,_resetDefaultValues:()=>isFunction(s.defaultValues)&&s.defaultValues().then(l=>{Ee(l,s.resetOptions),w.state.next({isLoading:!1})}),_updateFormState:l=>{n={...n,...l}},_subjects:w,_proxyFormState:z,get _fields(){return r},get _formValues(){return f},get _state(){return g},set _state(l){g=l},get _defaultValues(){return o},get _names(){return m},set _names(l){m=l},get _formState(){return n},set _formState(l){n=l},get _options(){return s},set _options(l){s={...s,...l}}},trigger:Ae,register:Ce,handleSubmit:We,watch:Be,setValue:ve,getValues:we,reset:Ee,resetField:Je,clearErrors:je,unregister:ke,setError:Ue,setFocus:(l,h={})=>{const p=get(r,l),R=p&&p._f;if(R){const _=R.refs?R.refs[0]:R.ref;_.focus&&(_.focus(),h.shouldSelect&&_.select())}},getFieldState:Fe}}function useForm(e={}){const i=React.useRef(),[s,n]=React.useState({isDirty:!1,isValidating:!1,isLoading:isFunction(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:isFunction(e.defaultValues)?void 0:e.defaultValues});i.current||(i.current={...createFormControl(e,()=>n(o=>({...o}))),formState:s});const r=i.current.control;return r._options=e,useSubscribe({subject:r._subjects.state,next:o=>{shouldRenderFormState(o,r._proxyFormState,r._updateFormState,!0)&&n({...r._formState})}}),React.useEffect(()=>{e.values&&!deepEqual(e.values,r._defaultValues)?r._reset(e.values,r._options.resetOptions):r._resetDefaultValues()},[e.values,r]),React.useEffect(()=>{r._state.mount||(r._updateValid(),r._state.mount=!0),r._state.watch&&(r._state.watch=!1,r._subjects.state.next({...r._formState})),r._removeUnmounted()}),i.current.formState=getProxyFormState(s,r),i.current}function Catalog({datasets:e,facets:i}){const[s,n]=reactExports.useState(""),r=new flexsearch_bundleExports.Index({tokenize:"full"});e.forEach(A=>r.add(A._id,Object.entries(A.metadata).reduce((j,z)=>j+" "+z[1].toString(),"")+" "+A.url_path));const o=i?i.reduce((A,j)=>{const z=e.reduce((w,H)=>{const k=H.metadata[j];return k?Array.isArray(k)?w.concat(k):w.concat([k]):w},[]);return A[j]={possibleValues:[...new Set(z)],selectedValue:null},A},{}):[],{register:f,watch:g}=useForm(o),m=e.filter(A=>s!==""?r.search(s).includes(A._id):!0).filter(A=>!g()||Object.keys(g()).length===0?!0:Object.entries(A.metadata).filter(z=>i.includes(z[0])).every(z=>g()[z[0]].selectedValue?z[1].includes(g()[z[0]].selectedValue):!0));return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(DebouncedInput,{value:s??"",onChange:A=>n(String(A)),className:"p-2 text-sm shadow border border-block mr-1",placeholder:"Search all datasets..."}),Object.entries(o).map(A=>jsxRuntimeExports.jsxs("select",{defaultValue:"",className:"p-2 ml-1 text-sm shadow border border-block",...f(A[0]+".selectedValue"),children:[jsxRuntimeExports.jsxs("option",{value:"",children:["Filter by ",A[0]]}),A[1].possibleValues.map(j=>jsxRuntimeExports.jsx("option",{className:"dark:bg-white dark:text-black",value:j,children:j},j))]},A[0])),jsxRuntimeExports.jsx("ul",{className:"mb-5 pl-6 mt-5 list-disc",children:m.map(A=>jsxRuntimeExports.jsx("li",{className:"py-2",children:jsxRuntimeExports.jsx("a",{className:"font-medium underline",href:A.url_path,children:A.metadata.title?A.metadata.title:A.url_path})},A._id))})]})}try{Catalog.displayName="Catalog",Catalog.__docgenInfo={description:"",displayName:"Catalog",props:{datasets:{defaultValue:null,description:"",name:"datasets",required:!0,type:{name:"any[]"}},facets:{defaultValue:null,description:"",name:"facets",required:!0,type:{name:"string[]"}}}}}catch(e){}const meta={title:"Components/Catalog",component:Catalog,tags:["autodocs"],argTypes:{datasets:{description:"Lists of datasets to be displayed in the list, will usually be automatically available"},facets:{description:"List of frontmatter fields that should be used as filters, needs to match exactly with the field name"}}},WithoutFacets={name:"Catalog without facets",args:{datasets:[{_id:"07026b22d49916754df1dc8ffb9ccd1c31878aae",url_path:"dataset-4",file_path:"content/dataset-4/index.md",metadata:{title:"Detecting Abusive Albanian","link-to-publication":"https://arxiv.org/abs/2107.13592","link-to-data":"https://doi.org/10.6084/m9.figshare.19333298.v1","task-description":"Hierarchical (offensive/not; untargeted/targeted; person/group/other)","details-of-task":"Detect and categorise abusive language in social media data","size-of-dataset":11874,"percentage-abusive":13.2,language:"Albanian","level-of-annotation":["Posts"],platform:["Instagram","Youtube"],medium:["Text"],reference:"Nurce, E., Keci, J., Derczynski, L., 2021. Detecting Abusive Albanian. arXiv:2107.13592"}},{_id:"42c86cf3c4fbbab11d91c2a7d6dcb8f750bc4e19",url_path:"dataset-1",file_path:"content/dataset-1/index.md",metadata:{title:"AbuseEval v1.0","link-to-publication":"http://www.lrec-conf.org/proceedings/lrec2020/pdf/2020.lrec-1.760.pdf","link-to-data":"https://github.com/tommasoc80/AbuseEval","task-description":"Explicitness annotation of offensive and abusive content","details-of-task":"Enriched versions of the OffensEval/OLID dataset with the distinction of explicit/implicit offensive messages and the new dimension for abusive messages. Labels for offensive language: EXPLICIT, IMPLICT, NOT; Labels for abusive language: EXPLICIT, IMPLICT, NOTABU","size-of-dataset":14100,"percentage-abusive":20.75,language:"English","level-of-annotation":["Tweets"],platform:["Twitter"],medium:["Text"],reference:'Caselli, T., Basile, V., Jelena, M., Inga, K., and Michael, G. 2020. "I feel offended, dont be abusive! implicit/explicit messages in offensive and abusive language". The 12th Language Resources and Evaluation Conference (pp. 6193-6202). European Language Resources Association.'}},{_id:"80001dd32a752421fdcc64e91fbd237dc31d6bb3",url_path:"dataset-2",file_path:"content/dataset-2/index.md",metadata:{title:"Abusive Language Detection on Arabic Social Media (Al Jazeera)","link-to-publication":"https://www.aclweb.org/anthology/W17-3008","link-to-data":"http://alt.qcri.org/~hmubarak/offensive/AJCommentsClassification-CF.xlsx","task-description":"Ternary (Obscene, Offensive but not obscene, Clean)","details-of-task":"Incivility","size-of-dataset":32e3,"percentage-abusive":.81,language:"Arabic","level-of-annotation":["Posts"],platform:["AlJazeera"],medium:["Text"],reference:"Mubarak, H., Darwish, K. and Magdy, W., 2017. Abusive Language Detection on Arabic Social Media. In: Proceedings of the First Workshop on Abusive Language Online. Vancouver, Canada: Association for Computational Linguistics, pp.52-56."}},{_id:"96649d05d8193f4333b10015af76c6562971bd8c",url_path:"dataset-3",file_path:"content/dataset-3/index.md",metadata:{title:"CoRAL: a Context-aware Croatian Abusive Language Dataset","link-to-publication":"https://aclanthology.org/2022.findings-aacl.21/","link-to-data":"https://github.com/shekharRavi/CoRAL-dataset-Findings-of-the-ACL-AACL-IJCNLP-2022","task-description":"Multi-class based on context dependency categories (CDC)","details-of-task":"Detectioning CDC from abusive comments","size-of-dataset":2240,"percentage-abusive":100,language:"Croatian","level-of-annotation":["Posts"],platform:["Posts"],medium:["Newspaper Comments"],reference:"Ravi Shekhar, Mladen Karan and Matthew Purver (2022). CoRAL: a Context-aware Croatian Abusive Language Dataset. Findings of the ACL: AACL-IJCNLP."}}]}},WithFacets={name:"Catalog with facets",args:{datasets:[{_id:"07026b22d49916754df1dc8ffb9ccd1c31878aae",url_path:"dataset-4",file_path:"content/dataset-4/index.md",metadata:{title:"Detecting Abusive Albanian","link-to-publication":"https://arxiv.org/abs/2107.13592","link-to-data":"https://doi.org/10.6084/m9.figshare.19333298.v1","task-description":"Hierarchical (offensive/not; untargeted/targeted; person/group/other)","details-of-task":"Detect and categorise abusive language in social media data","size-of-dataset":11874,"percentage-abusive":13.2,language:"Albanian","level-of-annotation":["Posts"],platform:["Instagram","Youtube"],medium:["Text"],reference:"Nurce, E., Keci, J., Derczynski, L., 2021. Detecting Abusive Albanian. arXiv:2107.13592"}},{_id:"42c86cf3c4fbbab11d91c2a7d6dcb8f750bc4e19",url_path:"dataset-1",file_path:"content/dataset-1/index.md",metadata:{title:"AbuseEval v1.0","link-to-publication":"http://www.lrec-conf.org/proceedings/lrec2020/pdf/2020.lrec-1.760.pdf","link-to-data":"https://github.com/tommasoc80/AbuseEval","task-description":"Explicitness annotation of offensive and abusive content","details-of-task":"Enriched versions of the OffensEval/OLID dataset with the distinction of explicit/implicit offensive messages and the new dimension for abusive messages. Labels for offensive language: EXPLICIT, IMPLICT, NOT; Labels for abusive language: EXPLICIT, IMPLICT, NOTABU","size-of-dataset":14100,"percentage-abusive":20.75,language:"English","level-of-annotation":["Tweets"],platform:["Twitter"],medium:["Text"],reference:'Caselli, T., Basile, V., Jelena, M., Inga, K., and Michael, G. 2020. "I feel offended, dont be abusive! implicit/explicit messages in offensive and abusive language". The 12th Language Resources and Evaluation Conference (pp. 6193-6202). European Language Resources Association.'}},{_id:"80001dd32a752421fdcc64e91fbd237dc31d6bb3",url_path:"dataset-2",file_path:"content/dataset-2/index.md",metadata:{title:"Abusive Language Detection on Arabic Social Media (Al Jazeera)","link-to-publication":"https://www.aclweb.org/anthology/W17-3008","link-to-data":"http://alt.qcri.org/~hmubarak/offensive/AJCommentsClassification-CF.xlsx","task-description":"Ternary (Obscene, Offensive but not obscene, Clean)","details-of-task":"Incivility","size-of-dataset":32e3,"percentage-abusive":.81,language:"Arabic","level-of-annotation":["Posts"],platform:["AlJazeera"],medium:["Text"],reference:"Mubarak, H., Darwish, K. and Magdy, W., 2017. Abusive Language Detection on Arabic Social Media. In: Proceedings of the First Workshop on Abusive Language Online. Vancouver, Canada: Association for Computational Linguistics, pp.52-56."}},{_id:"96649d05d8193f4333b10015af76c6562971bd8c",url_path:"dataset-3",file_path:"content/dataset-3/index.md",metadata:{title:"CoRAL: a Context-aware Croatian Abusive Language Dataset","link-to-publication":"https://aclanthology.org/2022.findings-aacl.21/","link-to-data":"https://github.com/shekharRavi/CoRAL-dataset-Findings-of-the-ACL-AACL-IJCNLP-2022","task-description":"Multi-class based on context dependency categories (CDC)","details-of-task":"Detectioning CDC from abusive comments","size-of-dataset":2240,"percentage-abusive":100,language:"Croatian","level-of-annotation":["Posts"],platform:["Posts"],medium:["Newspaper Comments"],reference:"Ravi Shekhar, Mladen Karan and Matthew Purver (2022). CoRAL: a Context-aware Croatian Abusive Language Dataset. Findings of the ACL: AACL-IJCNLP."}}],facets:["language","platform"]}};var Te,Ne,Se;WithoutFacets.parameters={...WithoutFacets.parameters,docs:{...(Te=WithoutFacets.parameters)==null?void 0:Te.docs,source:{originalSource:`{
name: 'Catalog without facets',
args: {
datasets: [{
_id: '07026b22d49916754df1dc8ffb9ccd1c31878aae',
url_path: 'dataset-4',
file_path: 'content/dataset-4/index.md',
metadata: {
title: 'Detecting Abusive Albanian',
'link-to-publication': 'https://arxiv.org/abs/2107.13592',
'link-to-data': 'https://doi.org/10.6084/m9.figshare.19333298.v1',
'task-description': 'Hierarchical (offensive/not; untargeted/targeted; person/group/other)',
'details-of-task': 'Detect and categorise abusive language in social media data',
'size-of-dataset': 11874,
'percentage-abusive': 13.2,
language: 'Albanian',
'level-of-annotation': ['Posts'],
platform: ['Instagram', 'Youtube'],
medium: ['Text'],
reference: 'Nurce, E., Keci, J., Derczynski, L., 2021. Detecting Abusive Albanian. arXiv:2107.13592'
}
}, {
_id: '42c86cf3c4fbbab11d91c2a7d6dcb8f750bc4e19',
url_path: 'dataset-1',
file_path: 'content/dataset-1/index.md',
metadata: {
title: 'AbuseEval v1.0',
'link-to-publication': 'http://www.lrec-conf.org/proceedings/lrec2020/pdf/2020.lrec-1.760.pdf',
'link-to-data': 'https://github.com/tommasoc80/AbuseEval',
'task-description': 'Explicitness annotation of offensive and abusive content',
'details-of-task': 'Enriched versions of the OffensEval/OLID dataset with the distinction of explicit/implicit offensive messages and the new dimension for abusive messages. Labels for offensive language: EXPLICIT, IMPLICT, NOT; Labels for abusive language: EXPLICIT, IMPLICT, NOTABU',
'size-of-dataset': 14100,
'percentage-abusive': 20.75,
language: 'English',
'level-of-annotation': ['Tweets'],
platform: ['Twitter'],
medium: ['Text'],
reference: 'Caselli, T., Basile, V., Jelena, M., Inga, K., and Michael, G. 2020. "I feel offended, dont be abusive! implicit/explicit messages in offensive and abusive language". The 12th Language Resources and Evaluation Conference (pp. 6193-6202). European Language Resources Association.'
}
}, {
_id: '80001dd32a752421fdcc64e91fbd237dc31d6bb3',
url_path: 'dataset-2',
file_path: 'content/dataset-2/index.md',
metadata: {
title: 'Abusive Language Detection on Arabic Social Media (Al Jazeera)',
'link-to-publication': 'https://www.aclweb.org/anthology/W17-3008',
'link-to-data': 'http://alt.qcri.org/~hmubarak/offensive/AJCommentsClassification-CF.xlsx',
'task-description': 'Ternary (Obscene, Offensive but not obscene, Clean)',
'details-of-task': 'Incivility',
'size-of-dataset': 32000,
'percentage-abusive': 0.81,
language: 'Arabic',
'level-of-annotation': ['Posts'],
platform: ['AlJazeera'],
medium: ['Text'],
reference: 'Mubarak, H., Darwish, K. and Magdy, W., 2017. Abusive Language Detection on Arabic Social Media. In: Proceedings of the First Workshop on Abusive Language Online. Vancouver, Canada: Association for Computational Linguistics, pp.52-56.'
}
}, {
_id: '96649d05d8193f4333b10015af76c6562971bd8c',
url_path: 'dataset-3',
file_path: 'content/dataset-3/index.md',
metadata: {
title: 'CoRAL: a Context-aware Croatian Abusive Language Dataset',
'link-to-publication': 'https://aclanthology.org/2022.findings-aacl.21/',
'link-to-data': 'https://github.com/shekharRavi/CoRAL-dataset-Findings-of-the-ACL-AACL-IJCNLP-2022',
'task-description': 'Multi-class based on context dependency categories (CDC)',
'details-of-task': 'Detectioning CDC from abusive comments',
'size-of-dataset': 2240,
'percentage-abusive': 100,
language: 'Croatian',
'level-of-annotation': ['Posts'],
platform: ['Posts'],
medium: ['Newspaper Comments'],
reference: 'Ravi Shekhar, Mladen Karan and Matthew Purver (2022). CoRAL: a Context-aware Croatian Abusive Language Dataset. Findings of the ACL: AACL-IJCNLP.'
}
}]
}
}`,...(Se=(Ne=WithoutFacets.parameters)==null?void 0:Ne.docs)==null?void 0:Se.source}}};var Me,Re,Pe;WithFacets.parameters={...WithFacets.parameters,docs:{...(Me=WithFacets.parameters)==null?void 0:Me.docs,source:{originalSource:`{
name: 'Catalog with facets',
args: {
datasets: [{
_id: '07026b22d49916754df1dc8ffb9ccd1c31878aae',
url_path: 'dataset-4',
file_path: 'content/dataset-4/index.md',
metadata: {
title: 'Detecting Abusive Albanian',
'link-to-publication': 'https://arxiv.org/abs/2107.13592',
'link-to-data': 'https://doi.org/10.6084/m9.figshare.19333298.v1',
'task-description': 'Hierarchical (offensive/not; untargeted/targeted; person/group/other)',
'details-of-task': 'Detect and categorise abusive language in social media data',
'size-of-dataset': 11874,
'percentage-abusive': 13.2,
language: 'Albanian',
'level-of-annotation': ['Posts'],
platform: ['Instagram', 'Youtube'],
medium: ['Text'],
reference: 'Nurce, E., Keci, J., Derczynski, L., 2021. Detecting Abusive Albanian. arXiv:2107.13592'
}
}, {
_id: '42c86cf3c4fbbab11d91c2a7d6dcb8f750bc4e19',
url_path: 'dataset-1',
file_path: 'content/dataset-1/index.md',
metadata: {
title: 'AbuseEval v1.0',
'link-to-publication': 'http://www.lrec-conf.org/proceedings/lrec2020/pdf/2020.lrec-1.760.pdf',
'link-to-data': 'https://github.com/tommasoc80/AbuseEval',
'task-description': 'Explicitness annotation of offensive and abusive content',
'details-of-task': 'Enriched versions of the OffensEval/OLID dataset with the distinction of explicit/implicit offensive messages and the new dimension for abusive messages. Labels for offensive language: EXPLICIT, IMPLICT, NOT; Labels for abusive language: EXPLICIT, IMPLICT, NOTABU',
'size-of-dataset': 14100,
'percentage-abusive': 20.75,
language: 'English',
'level-of-annotation': ['Tweets'],
platform: ['Twitter'],
medium: ['Text'],
reference: 'Caselli, T., Basile, V., Jelena, M., Inga, K., and Michael, G. 2020. "I feel offended, dont be abusive! implicit/explicit messages in offensive and abusive language". The 12th Language Resources and Evaluation Conference (pp. 6193-6202). European Language Resources Association.'
}
}, {
_id: '80001dd32a752421fdcc64e91fbd237dc31d6bb3',
url_path: 'dataset-2',
file_path: 'content/dataset-2/index.md',
metadata: {
title: 'Abusive Language Detection on Arabic Social Media (Al Jazeera)',
'link-to-publication': 'https://www.aclweb.org/anthology/W17-3008',
'link-to-data': 'http://alt.qcri.org/~hmubarak/offensive/AJCommentsClassification-CF.xlsx',
'task-description': 'Ternary (Obscene, Offensive but not obscene, Clean)',
'details-of-task': 'Incivility',
'size-of-dataset': 32000,
'percentage-abusive': 0.81,
language: 'Arabic',
'level-of-annotation': ['Posts'],
platform: ['AlJazeera'],
medium: ['Text'],
reference: 'Mubarak, H., Darwish, K. and Magdy, W., 2017. Abusive Language Detection on Arabic Social Media. In: Proceedings of the First Workshop on Abusive Language Online. Vancouver, Canada: Association for Computational Linguistics, pp.52-56.'
}
}, {
_id: '96649d05d8193f4333b10015af76c6562971bd8c',
url_path: 'dataset-3',
file_path: 'content/dataset-3/index.md',
metadata: {
title: 'CoRAL: a Context-aware Croatian Abusive Language Dataset',
'link-to-publication': 'https://aclanthology.org/2022.findings-aacl.21/',
'link-to-data': 'https://github.com/shekharRavi/CoRAL-dataset-Findings-of-the-ACL-AACL-IJCNLP-2022',
'task-description': 'Multi-class based on context dependency categories (CDC)',
'details-of-task': 'Detectioning CDC from abusive comments',
'size-of-dataset': 2240,
'percentage-abusive': 100,
language: 'Croatian',
'level-of-annotation': ['Posts'],
platform: ['Posts'],
medium: ['Newspaper Comments'],
reference: 'Ravi Shekhar, Mladen Karan and Matthew Purver (2022). CoRAL: a Context-aware Croatian Abusive Language Dataset. Findings of the ACL: AACL-IJCNLP.'
}
}],
facets: ['language', 'platform']
}
}`,...(Pe=(Re=WithFacets.parameters)==null?void 0:Re.docs)==null?void 0:Pe.source}}};const __namedExportsOrder=["WithoutFacets","WithFacets"];export{WithFacets,WithoutFacets,__namedExportsOrder,meta as default};
//# sourceMappingURL=Catalog.stories-ea9731da.js.map