/*! For license information please see firstExample.app.js.LICENSE.txt */ (()=>{var e={196:(e,t,i)=>{"use strict";i.d(t,{q:()=>M});var r=function(e,t){return et?1:0},n=/(^0x[\da-fA-F]+$|^([+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?!\.\d+)(?=\D|\s|$))|\d+)/g,s=/^\s+|\s+$/g,a=/\s+/g,o=/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?$/,l=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[/-]\d{1,4}[/-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,d=/^0+[1-9]{1}[0-9]*$/,u=/[^\x00-\x80]/,c=function(e,t){var i=e.localeCompare(t);return i?i/Math.abs(i):0},h=function(e,t){return et?1:0},f=function(e){if(0!==e.length){var t=Number(e);if(!Number.isNaN(t))return t}},p=function(e){return e.replace(a," ").replace(s,"")},g=function(e,t,i){if(o.test(e)&&(!d.test(e)||0===t||"."!==i[t-1]))return f(e)||0},v=function(e,t,i){return{parsedNumber:g(e,t,i),normalizedString:p(e)}},m=function(e){return function(e){return e.replace(n,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0")}(e).map(v)},_=function(e){return"function"==typeof e},y=function(e){return Number.isNaN(e)||e instanceof Number&&Number.isNaN(e.valueOf())},b=function(e){return null===e},w=function(e){return!(null===e||"object"!=typeof e||Array.isArray(e)||e instanceof Number||e instanceof String||e instanceof Boolean||e instanceof Date)},E=function(e){return"symbol"==typeof e},S=function(e){return void 0===e},F=function(e){if("string"==typeof e||e instanceof String||("number"==typeof e||e instanceof Number)&&!y(e)||"boolean"==typeof e||e instanceof Boolean||e instanceof Date){var t=function(e){return"boolean"==typeof e||e instanceof Boolean?Number(e).toString():"number"==typeof e||e instanceof Number?e.toString():e instanceof Date?e.getTime().toString():"string"==typeof e||e instanceof String?e.toLowerCase().replace(s,""):""}(e),i=function(e){var t=f(e);return void 0!==t?t:function(e){if(l.test(e)){var t=Date.parse(e);if(!Number.isNaN(t))return t}}(e)}(t);return{parsedNumber:i,chunks:m(i?""+i:t),value:e}}return{isArray:Array.isArray(e),isFunction:_(e),isNaN:y(e),isNull:b(e),isObject:w(e),isSymbol:E(e),isUndefined:S(e),value:e}},k=function(e){return"string"==typeof e&&("asc"===e||"desc"===e)};function M(e){var t,i;return function(e){return function(t,i){return function(e,t){return e.value===t.value?0:void 0!==e.parsedNumber&&void 0!==t.parsedNumber?r(e.parsedNumber,t.parsedNumber):e.chunks&&t.chunks?function(e,t){for(var i=e.length,n=t.length,s=Math.min(i,n),a=0;as||n>s?i<=s?-1:1:0}(e.chunks,t.chunks):function(e,t){return(e.chunks?!t.chunks:t.chunks)?e.chunks?-1:1:(e.isNaN?!t.isNaN:t.isNaN)?e.isNaN?-1:1:(e.isSymbol?!t.isSymbol:t.isSymbol)?e.isSymbol?-1:1:(e.isObject?!t.isObject:t.isObject)?e.isObject?-1:1:(e.isArray?!t.isArray:t.isArray)?e.isArray?-1:1:(e.isFunction?!t.isFunction:t.isFunction)?e.isFunction?-1:1:(e.isNull?!t.isNull:t.isNull)?e.isNull?-1:1:0}(e,t)}(F(t),F(i))*("desc"===e.order?-1:1)}}((i="asc","string"==typeof(t=e)&&k(t)?i=t:t&&"object"==typeof t&&t.order&&k(t.order)&&(i=t.order),{order:i}))}},460:function(e,t){var i,r;void 0===(r="function"==typeof(i=function e(){"use strict";var t="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},i=!t.document&&!!t.postMessage,r=i&&/blob:/i.test((t.location||{}).protocol),n={},s=0,a={parse:function(i,r){var o=(r=r||{}).dynamicTyping||!1;if(w(o)&&(r.dynamicTypingFunction=o,o={}),r.dynamicTyping=o,r.transform=!!w(r.transform)&&r.transform,r.worker&&a.WORKERS_SUPPORTED){var l=function(){if(!a.WORKERS_SUPPORTED)return!1;var i,r,o=(i=t.URL||t.webkitURL||null,r=e.toString(),a.BLOB_URL||(a.BLOB_URL=i.createObjectURL(new Blob(["(",r,")();"],{type:"text/javascript"})))),l=new t.Worker(o);return l.onmessage=v,l.id=s++,n[l.id]=l}();return l.userStep=r.step,l.userChunk=r.chunk,l.userComplete=r.complete,l.userError=r.error,r.step=w(r.step),r.chunk=w(r.chunk),r.complete=w(r.complete),r.error=w(r.error),delete r.worker,void l.postMessage({input:i,config:r,workerId:l.id})}var f=null;return a.NODE_STREAM_INPUT,"string"==typeof i?f=r.download?new d(r):new c(r):!0===i.readable&&w(i.read)&&w(i.on)?f=new h(r):(t.File&&i instanceof File||i instanceof Object)&&(f=new u(r)),f.stream(i)},unparse:function(e,t){var i=!1,r=!0,n=",",s="\r\n",o='"',l=o+o,d=!1,u=null,c=!1;!function(){if("object"==typeof t){if("string"!=typeof t.delimiter||a.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(n=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(i=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(d=t.skipEmptyLines),"string"==typeof t.newline&&(s=t.newline),"string"==typeof t.quoteChar&&(o=t.quoteChar),"boolean"==typeof t.header&&(r=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");u=t.columns}void 0!==t.escapeChar&&(l=t.escapeChar+o),"boolean"==typeof t.escapeFormulae&&(c=t.escapeFormulae)}}();var h=new RegExp(p(o),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return f(null,e,d);if("object"==typeof e[0])return f(u||Object.keys(e[0]),e,d)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),f(e.fields||[],e.data||[],d);throw new Error("Unable to serialize unrecognized input");function f(e,t,i){var a="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var o=Array.isArray(e)&&0=this._config.preview;if(r)t.postMessage({results:o,workerId:a.WORKER_ID,finished:d});else if(w(this._config.chunk)&&!i){if(this._config.chunk(o,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);o=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(o.data),this._completeResults.errors=this._completeResults.errors.concat(o.errors),this._completeResults.meta=o.meta),this._completed||!d||!w(this._config.complete)||o&&o.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),d||o&&o.meta.paused||this._nextChunk(),o}this._halted=!0},this._sendError=function(e){w(this._config.error)?this._config.error(e):r&&this._config.error&&t.postMessage({workerId:a.WORKER_ID,error:e,finished:!1})}}function d(e){var t;(e=e||{}).chunkSize||(e.chunkSize=a.RemoteChunkSize),l.call(this,e),this._nextChunk=i?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),i||(t.onload=b(this._chunkLoaded,this),t.onerror=b(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!i),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var r in e)t.setRequestHeader(r,e[r])}if(this._config.chunkSize){var n=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+n)}try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}i&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:t.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(e){var t=e.getResponseHeader("Content-Range");return null===t?-1:parseInt(t.substring(t.lastIndexOf("/")+1))}(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){var i=t.statusText||e;this._sendError(new Error(i))}}function u(e){var t,i;(e=e||{}).chunkSize||(e.chunkSize=a.LocalChunkSize),l.call(this,e);var r="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,i=e.slice||e.webkitSlice||e.mozSlice,r?((t=new FileReader).onload=b(this._chunkLoaded,this),t.onerror=b(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function c(e){var t;l.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,i=this._config.chunkSize;return i?(e=t.substring(0,i),t=t.substring(i)):(e=t,t=""),this._finished=!t,this.parseChunk(e)}}}function h(e){l.call(this,e=e||{});var t=[],i=!0,r=!1;this.pause=function(){l.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){l.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){r&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):i=!0},this._streamData=b((function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=b((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=b((function(){this._streamCleanUp(),r=!0,this._streamData("")}),this),this._streamCleanUp=b((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function f(e){var t,i,r,n=Math.pow(2,53),s=-n,o=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,l=/^(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))$/,d=this,u=0,c=0,h=!1,f=!1,v=[],m={data:[],errors:[],meta:{}};if(w(e.step)){var _=e.step;e.step=function(t){if(m=t,S())E();else{if(E(),0===m.data.length)return;u+=t.data.length,e.preview&&u>e.preview?i.abort():(m.data=m.data[0],_(m,d))}}}function b(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function E(){if(m&&r&&(k("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+a.DefaultDelimiter+"'"),r=!1),e.skipEmptyLines)for(var t=0;t=v.length?"__parsed_extra":v[r]),e.transform&&(a=e.transform(a,s)),a=F(s,a),"__parsed_extra"===s?(n[s]=n[s]||[],n[s].push(a)):n[s]=a}return e.header&&(r>v.length?k("FieldMismatch","TooManyFields","Too many fields: expected "+v.length+" fields but parsed "+r,c+i):r=r.length/2?"\r\n":"\r"}(n,l)),r=!1,e.delimiter)w(e.delimiter)&&(e.delimiter=e.delimiter(n),m.meta.delimiter=e.delimiter);else{var d=function(t,i,r,n,s){var o,l,d,u;s=s||[",","\t","|",";",a.RECORD_SEP,a.UNIT_SEP];for(var c=0;c=o)return A(!0)}else for(D=u,u++;;){if(-1===(D=e.indexOf(t,D+1)))return h||b.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:y.length,index:u}),C();if(D===f-1)return C(e.substring(u,D).replace(O,t));if(t!==d||e[D+1]!==d){if(t===d||0===D||e[D-1]!==d){-1!==M&&M=o)return A(!0);break}b.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:y.length,index:u}),D++}}else D++}return C();function x(e){y.push(e),S=u}function I(t){var i=0;if(-1!==t){var r=e.substring(D+1,t);r&&""===r.trim()&&(i=r.length)}return i}function C(t){return h||(void 0===t&&(t=e.substring(u)),E.push(t),u=f,x(E),_&&H()),A()}function R(t){u=t,x(E),E=[],N=e.indexOf(r,u)}function A(e){return{data:y,errors:b,meta:{delimiter:i,linebreak:r,aborted:c,truncated:!!e,cursor:S+(a||0)}}}function H(){s(A()),y=[],b=[]}},this.abort=function(){c=!0},this.getCharIndex=function(){return u}}function v(e){var t=e.data,i=n[t.workerId],r=!1;if(t.error)i.userError(t.error,t.file);else if(t.results&&t.results.data){var s={abort:function(){r=!0,m(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:_,resume:_};if(w(i.userStep)){for(var a=0;a{e.exports={converterElementNotFound:'Aucun élément HTML n\'a été trouvé ayant comme "id" : ',converterFieldNotFound:"Le champ n'existe pas dans les données ou les données n'ont pas encore été chargées.",converterNeedDatasElt:"Merci de fournir un id valide pour l'élément où afficher les données.",converterRefreshFail:"Le nom des champs et l'élement du DOM receveur sont nécessaires à l'affichage des données.",pagination2HTMLFail:"Toutes les donnée nécessaires à la création des sélecteurs de pagination n'ont pas été fournies.",paginationNeedByfaultValueBeInOptions:"La valeur de pagination par défaut doit faire partie des options proposées.",paginationNeedDatas:"Il ne peut y avoir de pagination, si les données n'ont pas été récupérées.",paginationNeedOptionsValues:"Vous n'avez fourni aucune options possibles pour la pagination.",paginationNeedPositiveInteger:"Merci de fournir un nombre entier supérieur à zéro pour désigner chaque option de pagination.",parserDatasNotFound:"Aucune donnée n'a été trouvée.",parserFail:"La lecture des données du fichier a échoué.",parserNeedUrl:"Merci de fournir une url valide pour le fichier à parser.",renderNeedDatas:"Il ne peut y avoir de pagination, si les données n'ont pas été récupérées.",renderUnknownField:"Un champ non attendu a été trouvé dans les données à afficher : ",selector2HTMLFail:"Le création d'un filtre dans le DOM nécessite l'initialisation de l'élément HTML et du numéro du champs à filter.",selectorCheckIsOkFail:"Le test est lancé sur un filtre incorrectement initialisé ou sur un attribut absent de la donnée à tester.",selectorFieldNotFound:"Au moins un des champs devant servir à filtrer les données n'existe pas dans le fichier.",selectorNeedDatas:"Le création d'un filtre nécessite la transmission des données à filtrer.",selectorSelectedIndexNotFound:"La valeur sélectionnée n'a pas été trouvée dans la liste des champs.",sortingField2HTMLFail:"Toutes les donnée nécessaires à la création du lien de classement n'ont pas été fournies.",sortingFieldNeedDatas:"Le création d'un champ de classement nécessite la transmission de la liste des champs.",sortingFieldFieldNotFound:"Au moins un des champs devant permettre de classer les données n'existe pas dans le fichier.",sortingFieldsNbFail:"Le nombre de champs trouvés dans le DOM ne correspond pas à celui des données à classer.",sortingFieldsNotInHTML:"Les champs pouvant servir à classer les données n'ont pas été trouvés dans le DOM."}}},t={};function i(r){var n=t[r];if(void 0!==n)return n.exports;var s=t[r]={exports:{}};return e[r].call(s.exports,s,s.exports,i),s.exports}i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e,t,r=i(658),n=function(){function e(t,i){void 0===i&&(i=e.defaultSettings),this._converter=t,this.settings=i}return e.prototype.rend2HTML=function(e){if(void 0===this._converter.parseMetas||void 0===this._converter.parseMetas.fields)throw new Error(r.renderNeedDatas);var t=this.settings.allBegining;if(void 0!==this.settings.fieldsBegining&&void 0!==this.settings.fieldDisplaying&&void 0!==this.settings.fieldsEnding){for(var i in t+=this.settings.fieldsBegining,this._converter.parseMetas.fields)t+=this.settings.fieldDisplaying.replace("#FIELDNAME",this._converter.parseMetas.fields[Number(i)]);t+=this.settings.fieldsEnding}for(var n in t+=this.settings.linesBegining,e){for(var s in t+=this.settings.lineBegining,e[n])-1!==this._converter.parseMetas.fields.indexOf(s)?t+=this.settings.dataDisplaying.replace("#VALUE",e[n][s]).replace("#FIELDNAME",s):console.log(r.renderUnknownField+s);t+=this.settings.lineEnding}return t+(this.settings.linesEnding+this.settings.allEnding)},e.defaultSettings={allBegining:"",allEnding:"
",fieldsBegining:"",fieldsEnding:"",fieldDisplaying:"#FIELDNAME",linesBegining:"",linesEnding:"",lineBegining:"",lineEnding:"",dataDisplaying:"#VALUE"},e}(),s=i(658),a=function(){function e(e,t,i){if(void 0===i&&(i="Pages"),void 0===e.parseMetas||void 0===e.parseMetas.fields)throw new Error(s.paginationNeedDatas);this._pages={displayElement:m.checkInDOMById(t),name:i},this._converter=e}return e.isPositiveInteger=function(e){return!(!1===Number.isInteger(e)||e<=0)},Object.defineProperty(e.prototype,"selectedValue",{get:function(){return this._selectedValue},set:function(t){if(void 0===t||!e.isPositiveInteger(t))throw new Error(s.needPositiveInteger);if(void 0!==this.options&&-1===this.options.values.indexOf(t))throw new Error(s.paginationNeedByfaultValueBeInOptions);this._selectedValue=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},set:function(t){if(void 0!==t){if(t.displayElement=m.checkInDOMById(t.displayElement),0===t.values.length)throw new Error(s.paginationNeedOptionsValues);for(var i in t.values)if(!e.isPositiveInteger(t.values[i]))throw new Error(s.needPositiveInteger);if(void 0!==this.selectedValue&&-1===t.values.indexOf(this.selectedValue))throw new Error(s.paginationNeedByfaultValueBeInOptions);t.name=void 0===t.name?"Pagination":t.name,this._options=t}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pages",{get:function(){return this._pages},enumerable:!1,configurable:!0}),e.prototype.rend2HTML=function(){if(void 0===this._converter||void 0===this._options)throw new Error(s.pagination2HTMLFail);var e="",this._options.displayElement.eltDOM.innerHTML=e;var i=document.getElementById("freeDatas2HTMLPaginationSelector");if(void 0!==this._selectedValue){var r=this._options.values.indexOf(this._selectedValue)+1;i.value=""+r}var n=this;i.addEventListener("change",(function(e){"0"===i.value?n._selectedValue=void 0:n._selectedValue=n._options.values[Number(i.value)-1],n._converter.refreshView()}))},e.prototype.creaPageSelector=function(e){if(void 0!==this.selectedValue)if(e>this.selectedValue){var t=Math.ceil(e/this.selectedValue),i="",this.pages.displayElement.eltDOM.innerHTML=i;var n=document.getElementById("freeDatas2HTMLPagesSelector");void 0!==this.pages.selectedValue&&(n.value=""+this.pages.selectedValue),this.pages.selectedValue=1;var s=this;n.addEventListener("change",(function(e){s.pages.selectedValue=Number(n.value),s._converter.refreshView()}))}else this.pages.displayElement.eltDOM.innerHTML="";else this.pages.displayElement.eltDOM.innerHTML=""},e}(),o=i(196).q,l=i(658),d=function(){function e(e,t,i){if(this._datasViewElt={id:"",eltDOM:void 0},this.name="",this.values=[],void 0===e.parseMetas||void 0===e.parseMetas.fields||0===e.parseDatas.length)throw new Error(l.selectorNeedDatas);if(!e.checkFieldExist(Number(t)))throw new Error(l.selectorFieldNotFound);this._datasViewElt=m.checkInDOMById(i),this._converter=e,this._datasFieldNb=t}return Object.defineProperty(e.prototype,"separator",{get:function(){return this._separator},set:function(e){this._separator=""===e?void 0:e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"datasViewElt",{get:function(){return this._datasViewElt},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"datasFieldNb",{get:function(){return this._datasFieldNb},enumerable:!1,configurable:!0}),e.prototype.selector2HTML=function(){if(void 0===this._converter||void 0===this._datasViewElt.eltDOM||void 0===this._datasFieldNb)throw new Error(l.selector2HTMLFail);for(var e in this.name=this._converter.parseMetas.fields[this._datasFieldNb],this._converter.parseDatas)if(void 0===this._separator)""!==(r=String(this._converter.parseDatas[e][this.name]).trim())&&-1===this.values.indexOf(r)&&this.values.push(r);else{var t=String(this._converter.parseDatas[e][this.name]).split(this._separator);for(var i in t){var r;""!==(r=t[i].trim())&&-1===this.values.indexOf(r)&&this.values.push(r)}}if(this.values.length>0){void 0!==this._converter.getSortingFunctionForField(this._datasFieldNb)?this.values.sort(this._converter.getSortingFunctionForField(this._datasFieldNb).sort):this.values.sort(o());var n="",this._datasViewElt.eltDOM.innerHTML=n;var a=document.getElementById("freeDatas2HTML_"+this._datasViewElt.id),d=this;a.addEventListener("change",(function(e){d._converter.refreshView()}))}},e.prototype.getSelectionnedId=function(){var e=document.getElementById("freeDatas2HTML_"+this._datasViewElt.id);return void 0===e?0:parseInt(e.value,10)},e.prototype.dataIsOk=function(e){if(void 0===this.name||""===this.name)throw new Error(l.selectorCheckIsOkFail);var t=this.getSelectionnedId();if(0===t)return!0;if(t-=1,void 0===this.values[t])throw new Error(l.selectorSelectedIndexNotFound);if(void 0===e[this.name])return!1;var i=this.values[t];if(void 0===this._separator)return e[this.name].trim()===i;var r=!1,n=String(e[this.name]).split(this._separator);for(var s in n)if(n[s].trim()===i){r=!0;break}return r},e}(),u=(i(196).q,i(658)),c=function(){function e(e,t,i){if(void 0===i&&(i="th"),this._order=void 0,void 0===e.parseMetas||void 0===e.parseMetas.fields)throw new Error(u.sortingFieldNeedDatas);if(!e.checkFieldExist(Number(t)))throw new Error(u.sortingFieldFieldNotFound);var r=document.querySelectorAll(i);if(void 0===r)throw new Error(u.sortingFieldsNotInHTML);if(r.length!==e.parseMetas.fields.length)throw new Error(u.sortingFieldsNbFail);this._converter=e,this._datasFieldNb=t,this._fieldsDOMSelector=i}return Object.defineProperty(e.prototype,"fieldsDOMSelector",{get:function(){return this._fieldsDOMSelector},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"datasFieldNb",{get:function(){return this._datasFieldNb},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"order",{get:function(){return this._order},enumerable:!1,configurable:!0}),e.prototype.field2HTML=function(){if(void 0===this._converter||""===this._fieldsDOMSelector||void 0===this._datasFieldNb)throw new Error(u.sortingField2HTMLFail);var e=document.querySelectorAll(this._fieldsDOMSelector),t=e[this._datasFieldNb].innerHTML;t=""+t+"",e[this._datasFieldNb].innerHTML=t;var i=document.getElementById("freeDatas2HTMLSorting"+this._datasFieldNb),r=this;i.addEventListener("click",(function(e){e.preventDefault();var t=r._order;r._order=void 0===t||"desc"===t?"asc":"desc",r._converter.datasSortedField=r,r._converter.refreshView()}))},e}(),h=function(e,t,i,r){return new(i||(i=Promise))((function(n,s){function a(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,o)}l((r=r.apply(e,t||[])).next())}))},f=function(e,t){var i,r,n,s,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,r&&(n=2&s[0]?r.return:s[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,s[1])).done)return n;switch(r=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((n=(n=a.trys).length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]=s&&l0&&n[n.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1] 100000","> 1 et < 100 000","≤ 1","Traces","Inexistant"];return"desc"===i&&r.reverse(),r.indexOf(e)>r.indexOf(t)?-1:r.indexOf(e)Affichage petits écrans !",allEnding:"",linesBegining:"
    ",linesEnding:"
",lineBegining:"
    • ",lineEnding:"
  • ",dataDisplaying:"
  • #FIELDNAME : #VALUE
  • "},t.datasRender=i):(i.settings.allBegining="",t.datasRender=i),(r=new a(t,{id:"pages"},"Page à afficher :")).options={displayElement:{id:"paginationOptions"},values:[10,20,50,500],name:"Choix de pagination :"},r.selectedValue=10,t.pagination=r,r.rend2HTML(),t.datasCounter={id:"compteur"},[4,t.run()];case 2:return v.sent(),(s=new d(t,3,{id:"filtre1"})).selector2HTML(),(o=new d(t,4,{id:"filtre2"})).selector2HTML(),(l=new d(t,5,{id:"filtre3"})).separator=",",l.selector2HTML(),t.datasSelectors=[s,o,l],window.innerWidth>=800&&((u=new c(t,0)).field2HTML(),(h=new c(t,1)).field2HTML(),(f=new c(t,2)).field2HTML(),(p=new c(t,4)).field2HTML(),t.datasSortingFields=[u,h,f,p]),[3,4];case 3:return g=v.sent(),console.error(g),null!==document.getElementById("datas")&&(document.getElementById("datas").innerHTML="Désolé, mais un problème technique empêche l'affichage des données."),[3,4];case 4:return[2]}}))},new((e=void 0)||(e=Promise))((function(i,r){function n(e){try{a(t.next(e))}catch(e){r(e)}}function s(e){try{a(t.throw(e))}catch(e){r(e)}}function a(t){var r;t.done?i(t.value):(r=t.value,r instanceof e?r:new e((function(e){e(r)}))).then(n,s)}a((t=t.apply(void 0,[])).next())}))})()})();