@inntechcorp/it-design 2.1.76 → 2.1.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +91 -91
- package/dist/index.esm.js +2 -2
- package/dist/locales/en/itd.json +3 -3
- package/dist/locales/itd.json +3 -3
- package/dist/locales/tr/itd.json +3 -3
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e from"i18next";import{useTranslation as b,initReactI18next as M}from"react-i18next";import{jsx as o,Fragment as p,jsxs as z}from"react/jsx-runtime";import*as t from"react";import c,{useState as n,useEffect as O,useRef as r,useContext as i,useMemo as a,useDebugValue as A,createElement as s,isValidElement as d,cloneElement as l,createContext as q,useCallback as u,useLayoutEffect as f,forwardRef as W,useImperativeHandle as h,Children as m,createRef as R,memo as g,Suspense as L}from"react";import{createPortal as v,unstable_batchedUpdates as N}from"react-dom";import{CSSTransition as y}from"react-transition-group";import{ReactSVG as B}from"react-svg";import x from"autoprefixer";import w from"postcss";import{useSearchParams as X,useNavigate as k,createSearchParams as T,NavLink as S,useLocation as _}from"react-router-dom";import E from"axios";import{getChildrenDeep as C}from"react-nanny";var D,P,I,F,$,j={success:"Başarılı",error:"Hata",table:{noData:"Veri Yok"},placeholders:{username:"Kullanıcı adı",email:"E-Posta",password:"Şifre",confirmPassword:"Şifre tekrar",typeYourNoteHere:"Notunuzu buraya yazınız",selectGender:"Cinsiyet Seçin",selectLanguage:"Dil Seçin",selectCountry:"Ülke Seçin",birthday:"Doğum Tarihi",multipleSelection:"Seçili ({{- count}})"},options:{all:"Hepsi",male:"Erkek",female:"Kadın",languages:{turkish:"Türkçe",english:"İngilizce"}},buttons:{submit:"Gönder",reset:"Temizle"},errors:{required:"Bu alan zorunludur!",minLength:"En az {{- length}} karakter olmalıdır",maxLength:"Çok uzun. Maks uzunluk {{- length}} karakter olmalıdır.",exactLength:"This field must be {{- length}} characters long.",passwordRule:"Şifreniz en az 8 harf olmalı, bir rakam, bir büyük ve bir küçük harf, bir özel karakter içermeli ve boşluk kullanılmamalıdır.",invalidEmailAddress:"Geçersiz e-posta adresi",passwordsDontMatch:"Girdiğiniz şifreler birbirleriyle uyuşmuyor!",usernameRule:"Şifreniz en az 6 karakter uzunluğunda olmalıdır. Sadece İngilizce harfler, rakamlar ve semboller (-_.) kullanılabilir. Boşluk karakterine izin verilmez.",wrongTCIdentity:"TC Kimlik Numarası Yanlış",fieldMustBeTheSame:"Bu alan şunlarla aynı olmalıdır: {{- fields}}",siteUsernameRule:"Bu alan en az 3 karakter, en fazla 15 karakter uzunluğunda olmalıdır. Sadece İngilizce küçük harfler, rakamlar ve semboller (-_.) kullanılabilir. Boşluk karakterine ve büyük harflere izin verilmez.",adminUsernameRule:"Bu alan en az 3 karakter, en fazla 30 karakter uzunluğunda olmalıdır. Sadece ingilizce küçükharflerden ve rakamlardan oluşmalıdır. Semboller (-_. vs) ve boşluk karakteri kullanılamaz.",fieldMustBeDifferent:"Bu alan şunlarla aynı olmamalıdır: {{- fields}}"},uploader:{header:"Bir resmi sürükleyip bırakın",hint:"ya da bir dosya seçmek için tıklayın.",fileUploading:"Dosya yükleniyor...",info:"Toplam: {{- total}} - {{- estimated}} sn kaldı.",delete:"Sil",preview:"Önizleme",error:"Hata",fileFormatError:"Yalnızca {{fileFormat}} dosyası yükleyebilirsiniz.",fileSizeError:"Dosya boyutu {{fileSize}}'den küçük olmalıdır.",fileUploadSuccess:"Dosya başarıyla yüklendi.",fileUploadFailed:"Dosya yüklenemedi!",removeFileSuccess:"Dosya başarıyla silindi!",browserDoesntSupportDND:"Tarayıcı taşı&bırak özelliğini desteklemiyor!",calculating:"Hesaplanıyor...",removeFile:"Dosya Silme",areYouSureToDeleteThisFile:"Bu dosyayı silmek istediğinize emin misiniz?",yes:"Evet",no:"Hayır"},results:{authentication:{title:"Üye Girişi Gerekiyor",subtitle:"Bu bölüme ulaşmanız için üye girişi yapmanız gerekiyor. Aşağıdaki tuşa tıklayarak lütfen üye girişi yapınız.",button:"GİRİŞ YAP"}},currencies:{TRY:"Türk Lirası",EUR:"Euro",USD:"Dolar"},countries:{af:"Afganistan",al:"Arnavutluk",dz:"Cezayir",ad:"Andorra",ao:"Angola",ag:"Antigua ve Barbuda",ar:"Arjantin",am:"Ermenistan",au:"Avustralya",at:"Avusturya",az:"Azerbaycan",bs:"Bahamalar",bh:"Bahreyn",bd:"Bangladeş",bb:"Barbados",by:"Beyaz Rusya",be:"Belçika",bz:"Belize",bj:"Benin",bt:"Bhutan",bo:"Bolivya",ba:"Bosna-Hersek",bw:"Botsvana",br:"Brezilya",bn:"Brunei",bg:"Bulgaristan",bf:"Burkina Faso",bi:"Burundi",cv:"Yeşil Burun Adaları",kh:"Kamboçya",cm:"Kamerun",ca:"Kanada",cf:"Orta Afrika Cumhuriyeti",td:"Çad",cl:"Şili",cn:"Çin Halk Cumhuriyeti",co:"Kolombiya",km:"Komorlar",cg:"Kongo Cumhuriyeti",cd:"Demokratik Kongo",cr:"Kosta Rika",ci:"Fildişi Sahili",hr:"Hırvatistan",cu:"Küba",cw:"Curaçao",cy:"Güney Kıbrıs",cz:"Çek Cumhuriyeti",dk:"Danimarka",dj:"Cibuti",dm:"Dominika",do:"Dominik Cumhuriyeti",ec:"Ekvador",eg:"Mısır",sv:"El Salvador",gq:"Ekvator Ginesi",er:"Eritre",ee:"Estonya",sz:"Esvati̇ni̇",et:"Etiyopya",fj:"Fiji",fi:"Finlandiya",fr:"Fransa",ga:"Gabon",gm:"Gambia",ge:"Gürcistan",de:"Almanya",gh:"Gana",gr:"Yunanistan",gd:"Grenada",gt:"Guatemala",gn:"Gine",gw:"Guinea-Bissau",gy:"Guyana",ht:"Haiti",hn:"Honduras",hu:"Macaristan",is:"İzlanda",in:"Hindistan",id:"Endonezya",ir:"İran",iq:"Irak",ie:"Ireland",il:"İrlanda",it:"İtalya",jm:"Jamaika",jp:"Japonya",jo:"Ürdün",kz:"Kazakistan",ke:"Kenya",ki:"Kiribati",kp:"Kuzey Kore",kr:"Güney Kore",kw:"Kuveyt",kg:"Kırgızistan",la:"Laos",lv:"Letonya",lb:"Lübnan",ls:"Lesotho",lr:"Liberya",ly:"Libya",li:"Lihtenştayn",lt:"Litvanya",lu:"Lüksemburg",mg:"Madagaskar",mw:"Malavi",my:"Malezya",mv:"Maldivler",ml:"Mali",mt:"Malta",mh:"Marshall Adaları",mr:"Moritanya",mu:"Mauritius",mx:"Meksika",fm:"Mikronezya",md:"Moldova",mc:"Monako",mn:"Moğolistan",me:"Karadağ",ma:"Fas",mz:"Mozambik",mm:"Myanmar",na:"Namibya",nr:"Nauru",np:"Nepal",nl:"Hollanda",nz:"Yeni Zelanda",ni:"Nikaragua",ne:"Nijer",ng:"Nijerya",mk:"Makedonya",no:"Norveç",om:"Umman",pk:"Pakistan",pw:"Palau",pa:"Panama",pg:"Papua Yeni Gine",py:"Paraguay",pe:"Peru",ph:"Filipinler",pl:"Polonya",pt:"Portekiz",qa:"Katar",ro:"Romanya",ru:"Rusya",rw:"Ruanda",kn:"Saint Kitts ve Nevis",lc:"Saint Lucia",vc:"Saint Vincent",ws:"Samoa",sm:"San Marino",st:"Sao Tome and Principe",sa:"Suudi Arabistan",sn:"Senegal",rs:"Sırbistan",sc:"Seyşeller",sl:"Sierra Leone",sg:"Singapur",sk:"Slovakya",si:"Slovenya",sb:"Solomon Adaları",so:"Somali",za:"Güney Afrika",ss:"Güney Sudan",es:"İspanya",lk:"Sri Lanka",sd:"Sudan",sr:"Surinam",se:"İsveç",ch:"İsviçre",sy:"Suriye",tj:"Tacikistan",tw:"Tayvan",tz:"Tanzanya",th:"Tayland",tl:"Doğu Timor",tg:"Togo",to:"Tonga",tt:"Trinidad ve Tobago",tn:"Tunus",tr:"Türkiye",tm:"Türkmenistan",tv:"Tuvalu",ug:"Uganda",ua:"Ukrayna",ae:"Birleşik Arap Emirlikleri",gb:"Birleşik Krallık",us:"Amerika Birleşik Devletleri",uy:"Uruguay",uz:"Özbekistan",vu:"Vanuatu",ve:"Venezuela",vn:"Vietnam",ye:"Yemen",zm:"Zambiya",zw:"Zimbabve"},calendar:{weekdaysLong:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],weekdaysShort:["Pt","Sa","Ça","Pe","Cu","Ct","Pz"],months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],firstDay:1,format:"DD/MM/YYYY"}},V={success:"Success",error:"Error",table:{noData:"No Data"},placeholders:{username:"Username",email:"E-Mail",password:"Password",confirmPassword:"Confirm password",typeYourNoteHere:"Type your note here",selectGender:"Select Gender",selectLanguage:"Select Language",selectCountry:"Select Country",birthday:"Birthday",multipleSelection:"Selected ({{- count}})"},options:{all:"All",male:"Male",female:"Female",languages:{turkish:"Turkish",english:"English"}},buttons:{submit:"Submit",reset:"Reset"},errors:{required:"This field is required!",minLength:"Should contain at least {{- length}} characters",maxLength:"Is too long. Max size is {{- length}}",passwordRule:"Your password must be at least 8 characters long, contain at least one digit, one uppercase letter, one lowercase letter, one special character, and must not contain spaces.",invalidEmailAddress:"Invalid email address",passwordsDontMatch:"The two passwords that you entered do not match!",usernameRule:"Your password must be at least 6 characters long. only English letters, digits and symbols (-_.). No space is allowed",wrongTCIdentity:"Wrong TC Identity Number",fieldMustBeTheSame:"This field must be the same as: {{- fields}}",siteUsernameRule:"Your username must be at least 3 characters long, at most 15 characters long. Only English lowercase letters, digits and symbols (-_.). No space is allowed, no uppercase letters are allowed",adminUsernameRule:"Your username must be at least 3 characters long, at most 30 characters long. Only English lowercase letters and digits. No symbols (-_. vs) and no space is allowed",fieldMustBeDifferent:"This field must be different from: {{- fields}}"},uploader:{header:"Drag and drop an file",hint:"or Browse to choose a file",fileUploading:"File uploading...",info:"Total: {{- total}} - {{- estimated}} s remaining.",delete:"Delete",preview:"Preview",error:"Error",fileFormatError:"You can only upload {{fileFormat}} file",fileSizeError:"File must smaller than {{fileSize}}",fileUploadSuccess:"File successfully uploaded.",fileUploadFailed:"File upload failed!",removeFileSuccess:"File successfully delete!",browserDoesntSupportDND:"Browser doesn't support drag and drop!",calculating:"Calculating...",removeFile:"Remove File",areYouSureToDeleteThisFile:"Are you sure to delete this file?",yes:"Yes",no:"No"},results:{authentication:{title:"You Need To Sign In",subtitle:"You need to login to access this page. Please login by clicking the button below.",button:"LOGIN"}},currencies:{TRY:"Turkish Lira",EUR:"Euro",USD:"Dollar"},countries:{af:"Afghanistan",al:"Albania",dz:"Algeria",ad:"Andorra",ao:"Angola",ag:"Antigua and Barbuda",ar:"Argentina",am:"Armenia",au:"Australia",at:"Austria",az:"Azerbaijan",bs:"Bahamas",bh:"Bahrain",bd:"Bangladesh",bb:"Barbados",by:"Belarus",be:"Belgium",bz:"Belize",bj:"Benin",bt:"Bhutan",bo:"Bolivia",ba:"Bosnia and Herzegovina",bw:"Botswana",br:"Brazil",bn:"Brunei Darussalam",bg:"Bulgaria",bf:"Burkina Faso",bi:"Burundi",cv:"Cabo Verde",kh:"Cambodia",cm:"Cameroon",ca:"Canada",cf:"Central African Republic",td:"Chad",cl:"Chile",cn:"China",co:"Colombia",km:"Comoros",cg:"Congo",cd:"Congo, Democratic",cr:"Costa Rica",ci:"Côte d'Ivoire",hr:"Croatia",cu:"Cuba",cw:"Curacao",cy:"Cyprus",cz:"Czechia",dk:"Denmark",dj:"Djibouti",dm:"Dominica",do:"Dominican Republic",ec:"Ecuador",eg:"Egypt",sv:"El Salvador",gq:"Equatorial Guinea",er:"Eritrea",ee:"Estonia",sz:"Eswatini",et:"Ethiopia",fj:"Fiji",fi:"Finland",fr:"France",ga:"Gabon",gm:"Gambia",ge:"Georgia",de:"Germany",gh:"Ghana",gr:"Greece",gd:"Grenada",gt:"Guatemala",gn:"Guinea",gw:"Guinea-Bissau",gy:"Guyana",ht:"Haiti",hn:"Honduras",hu:"Hungary",is:"Iceland",in:"India",id:"Indonesia",ir:"Iran",iq:"Iraq",ie:"Ireland",il:"Israel",it:"Italy",jm:"Jamaica",jp:"Japan",jo:"Jordan",kz:"Kazakhstan",ke:"Kenya",ki:"Kiribati",kp:"North Korea",kr:"South Korea",kw:"Kuwait",kg:"Kyrgyzstan",la:"Lao People's",lv:"Latvia",lb:"Lebanon",ls:"Lesotho",lr:"Liberia",ly:"Libya",li:"Liechtenstein",lt:"Lithuania",lu:"Luxembourg",mg:"Madagascar",mw:"Malawi",my:"Malaysia",mv:"Maldives",ml:"Mali",mt:"Malta",mh:"Marshall Islands",mr:"Mauritania",mu:"Mauritius",mx:"Mexico",fm:"Micronesia",md:"Moldova, Republic of",mc:"Monaco",mn:"Mongolia",me:"Montenegro",ma:"Morocco",mz:"Mozambique",mm:"Myanmar",na:"Namibia",nr:"Nauru",np:"Nepal",nl:"Netherlands",nz:"New Zealand",ni:"Nicaragua",ne:"Niger",ng:"Nigeria",mk:"North Macedonia",no:"Norway",om:"Oman",pk:"Pakistan",pw:"Palau",pa:"Panama",pg:"Papua New Guinea",py:"Paraguay",pe:"Peru",ph:"Philippines",pl:"Poland",pt:"Portugal",qa:"Qatar",ro:"Romania",ru:"Russian Federation",rw:"Rwanda",kn:"Saint Kitts and Nevis",lc:"Saint Lucia",vc:"Saint Vincent",ws:"Samoa",sm:"San Marino",st:"Sao Tome and Principe",sa:"Saudi Arabia",sn:"Senegal",rs:"Serbia",sc:"Seychelles",sl:"Sierra Leone",sg:"Singapore",sk:"Slovakia",si:"Slovenia",sb:"Solomon Islands",so:"Somalia",za:"South Africa",ss:"South Sudan",es:"Spain",lk:"Sri Lanka",sd:"Sudan",sr:"Suriname",se:"Sweden",ch:"Switzerland",sy:"Syrian Arab Republic",tj:"Tajikistan",tw:"Taiwan",tz:"Tanzania",th:"Thailand",tl:"Timor-Leste",tg:"Togo",to:"Tonga",tt:"Trinidad and Tobago",tn:"Tunisia",tr:"Turkey",tm:"Turkmenistan",tv:"Tuvalu",ug:"Uganda",ua:"Ukraine",ae:"United Arab Emirates",gb:"United Kingdom",us:"United States of America",uy:"Uruguay",uz:"Uzbekistan",vu:"Vanuatu",ve:"Venezuela",vn:"Viet Nam",ye:"Yemen",zm:"Zambia",zw:"Zimbabwe"},calendar:{weekdaysLong:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],firstDay:0,format:"MM/DD/YYYY"}},U={weekdaysLong:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],weekdaysShort:["Pt","Sa","Ça","Pe","Cu","Ct","Pz"],months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],firstDay:1,format:"DD/MM/YYYY"},H={weekdaysLong:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],firstDay:0,format:"MM/DD/YYYY"};!function(e){e.NOT_SHOW="modal-not-show",e.BEGIN="modal-begin",e.ENTERING="modal-entering",e.ENTERED="modal-entered",e.EXITING="modal-exiting",e.EXITED="modal-exited",e.REMOVED="modal-removed",e.OK_CLICK="modal-ok-button-click",e.CANCEL_CLICK="modal-cancel-button-click",e.CLOSE_CLICK="modal-close-button-click",e.OUTSIDE_CLICK="modal-outside-click",e.ESC_CLICK="modal-esc-click",e.ALL_REMOVED="modal-all-removed"}(D||(D={})),function(e){e.SVG="image/svg+xml",e.PNG="image/png",e.JPG="image/jpeg",e.GIF="image/gif",e.PDF="application/pdf",e.OTF="font/otf"}(P||(P={})),function(e){e.SVG=".svg",e.PNG=".png",e.JPG=".jpg",e.GIF=".gif",e.PDF=".pdf",e.OTF=".otf"}(I||(I={})),function(e){e.REQUIRED="required",e.TYPE="type"}(F||(F={})),function(e){e.MIN_LENGTH="minLength",e.MAX_LENGTH="maxLength",e.EXACT_LENGTH="exactLength",e.SAME="same",e.NOT_SAME="notSame",e.TC_IDENTITY="TCIdentity",e.PASSWORD="password",e.EMAIL="email",e.USERNAME="username",e.SITE_USERNAME="siteUsername",e.ADMIN_USERNAME="adminUsername"}($||($={}));const Y=["background: #27C13A","color: #2b2b2b","line-height: 20px","border-radius: 20px"].join(";"),G=["background: #3598FE","color: #2B2B2B","line-height: 20px","border-radius: 20px"].join(";"),K=["background: #EAB62C","color: #2B2B2B","line-height: 20px","border-radius: 20px"].join(";"),Q=["background: #C12727","color: #cccccc","line-height: 20px","border-radius: 20px"].join(";"),J=["background: #27C13A","color: #2B2B2B","line-height: 20px","border-radius: 20px"].join(";"),Z=["background: #3598FE","color: #2B2B2B","line-height: 20px","border-radius: 20px"].join(";"),ee=["background: #EAB62C","color: #2B2B2B","line-height: 20px","border-radius: 20px"].join(";"),be=["background: #C12727","color: #cccccc","line-height: 20px","border-radius: 20px"].join(";"),Me=["background: #2B2B2B","color: #cccccc","line-height: 20px","border-radius: 20px"].join(";"),oe=["background-image: url('//i.giphy.com/XKCdA6ERnXp6M.webp')","background-size: 280px 200px","background-repeat: no-repeat","color: #000000","padding: 0px 75px 0 0","line-height: 200px"].join(";");let pe={single:(e,b="info")=>{if("fatal-error"!==b){var M="";"info"===b&&(M=Y),"warning"===b&&(M=K),"debug"===b&&(M=G),"error"===b&&(M=Q),console.log("%c "+e+" ",M)}else console.log("%c "+e,oe)},double:(e,b,M="info")=>{if("fatal-error"!==M){var o="";"info"===M&&(o=J),"warning"===M&&(o=ee),"debug"===M&&(o=Z),"error"===M&&(o=be),console.log("%c "+e+": %c "+b+" ",o,Me)}else console.log("%c "+e+": %c "+b+" ",o,oe)},table:e=>{console.table(e)}};const ze=e=>{let b;const[M,o]=n("");O((()=>()=>{document.body.removeChild(b)}),[]);return{loadReCaptcha:e=>{b=document.createElement("script"),b.src="https://www.google.com/recaptcha/api.js?render="+e,b.onload=function(){o(e)},document.body.appendChild(b)},executeReCaptcha:()=>{if(""===M)return pe.double("useReCaptcha","Not yet initialized! reCaptcha can't execute right now.","error"),void(e&&e(null));window.grecaptcha.ready((b=>{try{window.grecaptcha.execute(M,{action:"login"}).then((b=>{pe.double("ReCaptcha V3","Token is valid"),console.log("token: "+b),e&&e(b)}))}catch(e){pe.double("ReCaptcha V3","Token is invalid","error")}}))}}},te=(e=()=>{})=>{const[b,M]=n(!1);b||(e(),M(!0))},ce=(e,b=!1)=>{O((()=>{var o=!1,p=document.head,z=M();return document.querySelectorAll("head > link").forEach((b=>{-1!==b.href.indexOf(e)&&(o=!0)})),o||p.appendChild(z),()=>{b&&document.querySelectorAll("head > link").forEach((b=>{-1!==b.href.indexOf(e)&&document.head.removeChild(b)}))}}),[e]);const M=()=>{var b=document.createElement("link");return b.type="text/css",b.rel="stylesheet",b.href=e,b}};var ne="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},Oe="object"==typeof ne&&ne&&ne.Object===Object&&ne,re="object"==typeof self&&self&&self.Object===Object&&self,ie=(Oe||re||Function("return this")()).Symbol;var ae=Array.isArray,Ae=Object.prototype,se=Ae.hasOwnProperty,de=Ae.toString,le=ie?ie.toStringTag:void 0;var qe=Object.prototype.toString;var ue=ie?ie.toStringTag:void 0;function fe(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ue&&ue in Object(e)?function(e){var b=se.call(e,le),M=e[le];try{e[le]=void 0;var o=!0}catch(e){}var p=de.call(e);return o&&(b?e[le]=M:delete e[le]),p}(e):function(e){return qe.call(e)}(e)}var We=ie?ie.prototype:void 0,he=We?We.toString:void 0;function me(e){if("string"==typeof e)return e;if(ae(e))return function(e,b){for(var M=-1,o=null==e?0:e.length,p=Array(o);++M<o;)p[M]=b(e[M],M,e);return p}(e,me)+"";if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&"[object Symbol]"==fe(e)}(e))return he?he.call(e):"";var b=e+"";return"0"==b&&1/e==-1/0?"-0":b}var Re=0;function ge(e){var b,M=++Re;return(null==(b=e)?"":me(b))+M}function Le(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ve,Ne={exports:{}},ye={exports:{}},Be={exports:{}},xe={exports:{}},we={exports:{}},Xe={exports:{}},ke={},Te={exports:{}};function Se(){return ve||(ve=1,function(e,b){function M(e){for(var b=e.toLowerCase(),M="",o=!1,p=0;p<6&&void 0!==b[p];p++){var z=b.charCodeAt(p);if(o=32===z,!(z>=97&&z<=102||z>=48&&z<=57))break;M+=b[p]}if(0!==M.length){var t=parseInt(M,16);return t>=55296&&t<=57343||0===t||t>1114111?["�",M.length+(o?1:0)]:[String.fromCodePoint(t),M.length+(o?1:0)]}}b.__esModule=!0,b.default=function(e){if(!o.test(e))return e;for(var b="",p=0;p<e.length;p++)if("\\"!==e[p])b+=e[p];else{var z=M(e.slice(p+1,p+7));if(void 0!==z){b+=z[0],p+=z[1];continue}if("\\"===e[p+1]){b+="\\",p++;continue}e.length===p+1&&(b+=e[p])}return b};var o=/\\/;e.exports=b.default}(Te,Te.exports)),Te.exports}var _e,Ee={exports:{}};var Ce,De={exports:{}};var Pe,Ie,Fe,$e={exports:{}};function je(){if(Ie)return ke;Ie=1,ke.__esModule=!0,ke.unesc=ke.stripComments=ke.getProp=ke.ensureObject=void 0;var e=t(Se());ke.unesc=e.default;var b,M,o=t((_e||(_e=1,b=Ee,(M=Ee.exports).__esModule=!0,M.default=function(e){for(var b=arguments.length,M=new Array(b>1?b-1:0),o=1;o<b;o++)M[o-1]=arguments[o];for(;M.length>0;){var p=M.shift();if(!e[p])return;e=e[p]}return e},b.exports=M.default),Ee.exports));ke.getProp=o.default;var p=t(function(){return Ce||(Ce=1,e=De,(b=De.exports).__esModule=!0,b.default=function(e){for(var b=arguments.length,M=new Array(b>1?b-1:0),o=1;o<b;o++)M[o-1]=arguments[o];for(;M.length>0;){var p=M.shift();e[p]||(e[p]={}),e=e[p]}},e.exports=b.default),De.exports;var e,b}());ke.ensureObject=p.default;var z=t(function(){return Pe||(Pe=1,e=$e,(b=$e.exports).__esModule=!0,b.default=function(e){for(var b="",M=e.indexOf("/*"),o=0;M>=0;){b+=e.slice(o,M);var p=e.indexOf("*/",M+2);if(p<0)return b;o=p+2,M=e.indexOf("/*",o)}return b+e.slice(o)},e.exports=b.default),$e.exports;var e,b}());function t(e){return e&&e.__esModule?e:{default:e}}return ke.stripComments=z.default,ke}function Ve(){return Fe||(Fe=1,function(e,b){b.__esModule=!0,b.default=void 0;var M=je();function o(e,b,M){return b&&function(e,b){for(var M=0;M<b.length;M++){var o=b[M];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(e.prototype,b),Object.defineProperty(e,"prototype",{writable:!1}),e}var p=function e(b,M){if("object"!=typeof b||null===b)return b;var o=new b.constructor;for(var p in b)if(b.hasOwnProperty(p)){var z=b[p];"parent"===p&&"object"===typeof z?M&&(o[p]=M):o[p]=z instanceof Array?z.map((function(b){return e(b,o)})):e(z,o)}return o},z=function(){function e(e){void 0===e&&(e={}),Object.assign(this,e),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var b=e.prototype;return b.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},b.replaceWith=function(){if(this.parent){for(var e in arguments)this.parent.insertBefore(this,arguments[e]);this.remove()}return this},b.next=function(){return this.parent.at(this.parent.index(this)+1)},b.prev=function(){return this.parent.at(this.parent.index(this)-1)},b.clone=function(e){void 0===e&&(e={});var b=p(this);for(var M in e)b[M]=e[M];return b},b.appendToPropertyAndEscape=function(e,b,M){this.raws||(this.raws={});var o=this[e],p=this.raws[e];this[e]=o+b,p||M!==b?this.raws[e]=(p||o)+M:delete this.raws[e]},b.setPropertyAndEscape=function(e,b,M){this.raws||(this.raws={}),this[e]=b,this.raws[e]=M},b.setPropertyWithoutEscape=function(e,b){this[e]=b,this.raws&&delete this.raws[e]},b.isAtPosition=function(e,b){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>e)&&(!(this.source.end.line<e)&&(!(this.source.start.line===e&&this.source.start.column>b)&&!(this.source.end.line===e&&this.source.end.column<b)))},b.stringifyProperty=function(e){return this.raws&&this.raws[e]||this[e]},b.valueToString=function(){return String(this.stringifyProperty("value"))},b.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},o(e,[{key:"rawSpaceBefore",get:function(){var e=this.raws&&this.raws.spaces&&this.raws.spaces.before;return void 0===e&&(e=this.spaces&&this.spaces.before),e||""},set:function(e){(0,M.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=e}},{key:"rawSpaceAfter",get:function(){var e=this.raws&&this.raws.spaces&&this.raws.spaces.after;return void 0===e&&(e=this.spaces.after),e||""},set:function(e){(0,M.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=e}}]),e}();b.default=z,e.exports=b.default}(Xe,Xe.exports)),Xe.exports}var Ue,He,Ye,Ge={};function Ke(){if(Ue)return Ge;Ue=1,Ge.__esModule=!0,Ge.UNIVERSAL=Ge.TAG=Ge.STRING=Ge.SELECTOR=Ge.ROOT=Ge.PSEUDO=Ge.NESTING=Ge.ID=Ge.COMMENT=Ge.COMBINATOR=Ge.CLASS=Ge.ATTRIBUTE=void 0;Ge.TAG="tag";Ge.STRING="string";Ge.SELECTOR="selector";Ge.ROOT="root";Ge.PSEUDO="pseudo";Ge.NESTING="nesting";Ge.ID="id";Ge.COMMENT="comment";Ge.COMBINATOR="combinator";Ge.CLASS="class";Ge.ATTRIBUTE="attribute";return Ge.UNIVERSAL="universal",Ge}function Qe(){return He||(He=1,function(e,b){b.__esModule=!0,b.default=void 0;var M,o=(M=Ve())&&M.__esModule?M:{default:M},p=function(e,b){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var M=z(b);if(M&&M.has(e))return M.get(e);var o={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var t in e)if("default"!==t&&Object.prototype.hasOwnProperty.call(e,t)){var c=p?Object.getOwnPropertyDescriptor(e,t):null;c&&(c.get||c.set)?Object.defineProperty(o,t,c):o[t]=e[t]}o.default=e,M&&M.set(e,o);return o}(Ke());function z(e){if("function"!=typeof WeakMap)return null;var b=new WeakMap,M=new WeakMap;return(z=function(e){return e?M:b})(e)}function t(e,b){var M="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(M)return(M=M.call(e)).next.bind(M);if(Array.isArray(e)||(M=function(e,b){if(!e)return;if("string"==typeof e)return c(e,b);var M=Object.prototype.toString.call(e).slice(8,-1);"Object"===M&&e.constructor&&(M=e.constructor.name);if("Map"===M||"Set"===M)return Array.from(e);if("Arguments"===M||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return c(e,b)}(e))||b){M&&(e=M);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,b){(null==b||b>e.length)&&(b=e.length);for(var M=0,o=new Array(b);M<b;M++)o[M]=e[M];return o}function n(e,b,M){return b&&function(e,b){for(var M=0;M<b.length;M++){var o=b[M];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(e.prototype,b),Object.defineProperty(e,"prototype",{writable:!1}),e}function O(e,b){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,b){return e.__proto__=b,e},O(e,b)}var r=function(e){var b,M;function o(b){var M;return(M=e.call(this,b)||this).nodes||(M.nodes=[]),M}M=e,(b=o).prototype=Object.create(M.prototype),b.prototype.constructor=b,O(b,M);var z=o.prototype;return z.append=function(e){return e.parent=this,this.nodes.push(e),this},z.prepend=function(e){for(var b in e.parent=this,this.nodes.unshift(e),this.indexes)this.indexes[b]++;return this},z.at=function(e){return this.nodes[e]},z.index=function(e){return"number"==typeof e?e:this.nodes.indexOf(e)},z.removeChild=function(e){var b;for(var M in e=this.index(e),this.at(e).parent=void 0,this.nodes.splice(e,1),this.indexes)(b=this.indexes[M])>=e&&(this.indexes[M]=b-1);return this},z.removeAll=function(){for(var e,b=t(this.nodes);!(e=b()).done;){e.value.parent=void 0}return this.nodes=[],this},z.empty=function(){return this.removeAll()},z.insertAfter=function(e,b){b.parent=this;var M,o=this.index(e);for(var p in this.nodes.splice(o+1,0,b),b.parent=this,this.indexes)o<(M=this.indexes[p])&&(this.indexes[p]=M+1);return this},z.insertBefore=function(e,b){b.parent=this;var M,o=this.index(e);for(var p in this.nodes.splice(o,0,b),b.parent=this,this.indexes)(M=this.indexes[p])>=o&&(this.indexes[p]=M+1);return this},z._findChildAtPosition=function(e,b){var M=void 0;return this.each((function(o){if(o.atPosition){var p=o.atPosition(e,b);if(p)return M=p,!1}else if(o.isAtPosition(e,b))return M=o,!1})),M},z.atPosition=function(e,b){return this.isAtPosition(e,b)?this._findChildAtPosition(e,b)||this:void 0},z._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},z.each=function(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var b=this.lastEach;if(this.indexes[b]=0,this.length){for(var M,o;this.indexes[b]<this.length&&(M=this.indexes[b],!1!==(o=e(this.at(M),M)));)this.indexes[b]+=1;return delete this.indexes[b],!1!==o&&void 0}},z.walk=function(e){return this.each((function(b,M){var o=e(b,M);if(!1!==o&&b.length&&(o=b.walk(e)),!1===o)return!1}))},z.walkAttributes=function(e){var b=this;return this.walk((function(M){if(M.type===p.ATTRIBUTE)return e.call(b,M)}))},z.walkClasses=function(e){var b=this;return this.walk((function(M){if(M.type===p.CLASS)return e.call(b,M)}))},z.walkCombinators=function(e){var b=this;return this.walk((function(M){if(M.type===p.COMBINATOR)return e.call(b,M)}))},z.walkComments=function(e){var b=this;return this.walk((function(M){if(M.type===p.COMMENT)return e.call(b,M)}))},z.walkIds=function(e){var b=this;return this.walk((function(M){if(M.type===p.ID)return e.call(b,M)}))},z.walkNesting=function(e){var b=this;return this.walk((function(M){if(M.type===p.NESTING)return e.call(b,M)}))},z.walkPseudos=function(e){var b=this;return this.walk((function(M){if(M.type===p.PSEUDO)return e.call(b,M)}))},z.walkTags=function(e){var b=this;return this.walk((function(M){if(M.type===p.TAG)return e.call(b,M)}))},z.walkUniversals=function(e){var b=this;return this.walk((function(M){if(M.type===p.UNIVERSAL)return e.call(b,M)}))},z.split=function(e){var b=this,M=[];return this.reduce((function(o,p,z){var t=e.call(b,p);return M.push(p),t?(o.push(M),M=[]):z===b.length-1&&o.push(M),o}),[])},z.map=function(e){return this.nodes.map(e)},z.reduce=function(e,b){return this.nodes.reduce(e,b)},z.every=function(e){return this.nodes.every(e)},z.some=function(e){return this.nodes.some(e)},z.filter=function(e){return this.nodes.filter(e)},z.sort=function(e){return this.nodes.sort(e)},z.toString=function(){return this.map(String).join("")},n(o,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),o}(o.default);b.default=r,e.exports=b.default}(we,we.exports)),we.exports}function Je(){return Ye||(Ye=1,function(e,b){b.__esModule=!0,b.default=void 0;var M,o=(M=Qe())&&M.__esModule?M:{default:M},p=Ke();function z(e,b,M){return b&&function(e,b){for(var M=0;M<b.length;M++){var o=b[M];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(e.prototype,b),Object.defineProperty(e,"prototype",{writable:!1}),e}function t(e,b){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,b){return e.__proto__=b,e},t(e,b)}var c=function(e){var b,M;function o(b){var M;return(M=e.call(this,b)||this).type=p.ROOT,M}M=e,(b=o).prototype=Object.create(M.prototype),b.prototype.constructor=b,t(b,M);var c=o.prototype;return c.toString=function(){var e=this.reduce((function(e,b){return e.push(String(b)),e}),[]).join(",");return this.trailingComma?e+",":e},c.error=function(e,b){return this._error?this._error(e,b):new Error(e)},z(o,[{key:"errorGenerator",set:function(e){this._error=e}}]),o}(o.default);b.default=c,e.exports=b.default}(xe,xe.exports)),xe.exports}var Ze,eb={exports:{}};function bb(){return Ze||(Ze=1,function(e,b){b.__esModule=!0,b.default=void 0;var M,o=(M=Qe())&&M.__esModule?M:{default:M},p=Ke();function z(e,b){return z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,b){return e.__proto__=b,e},z(e,b)}var t=function(e){var b,M;function o(b){var M;return(M=e.call(this,b)||this).type=p.SELECTOR,M}return M=e,(b=o).prototype=Object.create(M.prototype),b.prototype.constructor=b,z(b,M),o}(o.default);b.default=t,e.exports=b.default}(eb,eb.exports)),eb.exports}var Mb,ob,pb,zb={exports:{}};
|
|
1
|
+
import e from"i18next";import{useTranslation as b,initReactI18next as M}from"react-i18next";import{jsx as o,Fragment as p,jsxs as z}from"react/jsx-runtime";import*as t from"react";import c,{useState as n,useEffect as O,useRef as r,useContext as i,useMemo as a,useDebugValue as A,createElement as s,isValidElement as d,cloneElement as l,createContext as q,useCallback as u,useLayoutEffect as f,forwardRef as W,useImperativeHandle as h,Children as m,createRef as R,memo as g,Suspense as L}from"react";import{createPortal as v,unstable_batchedUpdates as N}from"react-dom";import{CSSTransition as y}from"react-transition-group";import{ReactSVG as B}from"react-svg";import x from"autoprefixer";import w from"postcss";import{useSearchParams as X,useNavigate as k,createSearchParams as T,NavLink as S,useLocation as _}from"react-router-dom";import E from"axios";import{getChildrenDeep as C}from"react-nanny";var D,P,I,F,$,j={success:"Başarılı",error:"Hata",table:{noData:"Veri Yok"},placeholders:{username:"Kullanıcı adı",email:"E-Posta",password:"Şifre",confirmPassword:"Şifre tekrar",typeYourNoteHere:"Notunuzu buraya yazınız",selectGender:"Cinsiyet Seçin",selectLanguage:"Dil Seçin",selectCountry:"Ülke Seçin",birthday:"Doğum Tarihi",multipleSelection:"Seçili ({{- count}})"},options:{all:"Hepsi",male:"Erkek",female:"Kadın",languages:{turkish:"Türkçe",english:"İngilizce"}},buttons:{submit:"Gönder",reset:"Temizle"},errors:{required:"Bu alan zorunludur!",minLength:"En az {{- length}} karakter olmalıdır",maxLength:"Çok uzun. Maks uzunluk {{- length}} karakter olmalıdır.",exactLength:"This field must be {{- length}} characters long.",passwordRule:"Şifreniz en az 8 harf olmalı, bir rakam, bir büyük ve bir küçük harf, bir özel karakter içermeli ve boşluk kullanılmamalıdır.",invalidEmailAddress:"Geçersiz e-posta adresi",passwordsDontMatch:"Girdiğiniz şifreler birbirleriyle uyuşmuyor!",usernameRule:"Sadece İngilizce harfler, rakamlar ve semboller (-_.) kullanılabilir. Boşluk karakterine izin verilmez.",wrongTCIdentity:"TC Kimlik Numarası Yanlış",fieldMustBeTheSame:"Bu alan şunlarla aynı olmalıdır: {{- fields}}",siteUsernameRule:"Sadece İngilizce küçük harfler, rakamlar ve semboller (-_.) kullanılabilir. Boşluk karakterine ve büyük harflere izin verilmez.",adminUsernameRule:"Sadece ingilizce küçük harflerden ve rakamlardan oluşmalıdır. Semboller (-_. vs) ve boşluk karakteri kullanılamaz.",fieldMustBeDifferent:"Bu alan şunlarla aynı olmamalıdır: {{- fields}}"},uploader:{header:"Bir resmi sürükleyip bırakın",hint:"ya da bir dosya seçmek için tıklayın.",fileUploading:"Dosya yükleniyor...",info:"Toplam: {{- total}} - {{- estimated}} sn kaldı.",delete:"Sil",preview:"Önizleme",error:"Hata",fileFormatError:"Yalnızca {{fileFormat}} dosyası yükleyebilirsiniz.",fileSizeError:"Dosya boyutu {{fileSize}}'den küçük olmalıdır.",fileUploadSuccess:"Dosya başarıyla yüklendi.",fileUploadFailed:"Dosya yüklenemedi!",removeFileSuccess:"Dosya başarıyla silindi!",browserDoesntSupportDND:"Tarayıcı taşı&bırak özelliğini desteklemiyor!",calculating:"Hesaplanıyor...",removeFile:"Dosya Silme",areYouSureToDeleteThisFile:"Bu dosyayı silmek istediğinize emin misiniz?",yes:"Evet",no:"Hayır"},results:{authentication:{title:"Üye Girişi Gerekiyor",subtitle:"Bu bölüme ulaşmanız için üye girişi yapmanız gerekiyor. Aşağıdaki tuşa tıklayarak lütfen üye girişi yapınız.",button:"GİRİŞ YAP"}},currencies:{TRY:"Türk Lirası",EUR:"Euro",USD:"Dolar"},countries:{af:"Afganistan",al:"Arnavutluk",dz:"Cezayir",ad:"Andorra",ao:"Angola",ag:"Antigua ve Barbuda",ar:"Arjantin",am:"Ermenistan",au:"Avustralya",at:"Avusturya",az:"Azerbaycan",bs:"Bahamalar",bh:"Bahreyn",bd:"Bangladeş",bb:"Barbados",by:"Beyaz Rusya",be:"Belçika",bz:"Belize",bj:"Benin",bt:"Bhutan",bo:"Bolivya",ba:"Bosna-Hersek",bw:"Botsvana",br:"Brezilya",bn:"Brunei",bg:"Bulgaristan",bf:"Burkina Faso",bi:"Burundi",cv:"Yeşil Burun Adaları",kh:"Kamboçya",cm:"Kamerun",ca:"Kanada",cf:"Orta Afrika Cumhuriyeti",td:"Çad",cl:"Şili",cn:"Çin Halk Cumhuriyeti",co:"Kolombiya",km:"Komorlar",cg:"Kongo Cumhuriyeti",cd:"Demokratik Kongo",cr:"Kosta Rika",ci:"Fildişi Sahili",hr:"Hırvatistan",cu:"Küba",cw:"Curaçao",cy:"Güney Kıbrıs",cz:"Çek Cumhuriyeti",dk:"Danimarka",dj:"Cibuti",dm:"Dominika",do:"Dominik Cumhuriyeti",ec:"Ekvador",eg:"Mısır",sv:"El Salvador",gq:"Ekvator Ginesi",er:"Eritre",ee:"Estonya",sz:"Esvati̇ni̇",et:"Etiyopya",fj:"Fiji",fi:"Finlandiya",fr:"Fransa",ga:"Gabon",gm:"Gambia",ge:"Gürcistan",de:"Almanya",gh:"Gana",gr:"Yunanistan",gd:"Grenada",gt:"Guatemala",gn:"Gine",gw:"Guinea-Bissau",gy:"Guyana",ht:"Haiti",hn:"Honduras",hu:"Macaristan",is:"İzlanda",in:"Hindistan",id:"Endonezya",ir:"İran",iq:"Irak",ie:"Ireland",il:"İrlanda",it:"İtalya",jm:"Jamaika",jp:"Japonya",jo:"Ürdün",kz:"Kazakistan",ke:"Kenya",ki:"Kiribati",kp:"Kuzey Kore",kr:"Güney Kore",kw:"Kuveyt",kg:"Kırgızistan",la:"Laos",lv:"Letonya",lb:"Lübnan",ls:"Lesotho",lr:"Liberya",ly:"Libya",li:"Lihtenştayn",lt:"Litvanya",lu:"Lüksemburg",mg:"Madagaskar",mw:"Malavi",my:"Malezya",mv:"Maldivler",ml:"Mali",mt:"Malta",mh:"Marshall Adaları",mr:"Moritanya",mu:"Mauritius",mx:"Meksika",fm:"Mikronezya",md:"Moldova",mc:"Monako",mn:"Moğolistan",me:"Karadağ",ma:"Fas",mz:"Mozambik",mm:"Myanmar",na:"Namibya",nr:"Nauru",np:"Nepal",nl:"Hollanda",nz:"Yeni Zelanda",ni:"Nikaragua",ne:"Nijer",ng:"Nijerya",mk:"Makedonya",no:"Norveç",om:"Umman",pk:"Pakistan",pw:"Palau",pa:"Panama",pg:"Papua Yeni Gine",py:"Paraguay",pe:"Peru",ph:"Filipinler",pl:"Polonya",pt:"Portekiz",qa:"Katar",ro:"Romanya",ru:"Rusya",rw:"Ruanda",kn:"Saint Kitts ve Nevis",lc:"Saint Lucia",vc:"Saint Vincent",ws:"Samoa",sm:"San Marino",st:"Sao Tome and Principe",sa:"Suudi Arabistan",sn:"Senegal",rs:"Sırbistan",sc:"Seyşeller",sl:"Sierra Leone",sg:"Singapur",sk:"Slovakya",si:"Slovenya",sb:"Solomon Adaları",so:"Somali",za:"Güney Afrika",ss:"Güney Sudan",es:"İspanya",lk:"Sri Lanka",sd:"Sudan",sr:"Surinam",se:"İsveç",ch:"İsviçre",sy:"Suriye",tj:"Tacikistan",tw:"Tayvan",tz:"Tanzanya",th:"Tayland",tl:"Doğu Timor",tg:"Togo",to:"Tonga",tt:"Trinidad ve Tobago",tn:"Tunus",tr:"Türkiye",tm:"Türkmenistan",tv:"Tuvalu",ug:"Uganda",ua:"Ukrayna",ae:"Birleşik Arap Emirlikleri",gb:"Birleşik Krallık",us:"Amerika Birleşik Devletleri",uy:"Uruguay",uz:"Özbekistan",vu:"Vanuatu",ve:"Venezuela",vn:"Vietnam",ye:"Yemen",zm:"Zambiya",zw:"Zimbabve"},calendar:{weekdaysLong:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],weekdaysShort:["Pt","Sa","Ça","Pe","Cu","Ct","Pz"],months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],firstDay:1,format:"DD/MM/YYYY"}},V={success:"Success",error:"Error",table:{noData:"No Data"},placeholders:{username:"Username",email:"E-Mail",password:"Password",confirmPassword:"Confirm password",typeYourNoteHere:"Type your note here",selectGender:"Select Gender",selectLanguage:"Select Language",selectCountry:"Select Country",birthday:"Birthday",multipleSelection:"Selected ({{- count}})"},options:{all:"All",male:"Male",female:"Female",languages:{turkish:"Turkish",english:"English"}},buttons:{submit:"Submit",reset:"Reset"},errors:{required:"This field is required!",minLength:"Should contain at least {{- length}} characters",maxLength:"Is too long. Max size is {{- length}}",passwordRule:"Your password must be at least 8 characters long, contain at least one digit, one uppercase letter, one lowercase letter, one special character, and must not contain spaces.",invalidEmailAddress:"Invalid email address",passwordsDontMatch:"The two passwords that you entered do not match!",usernameRule:"Only English letters, digits and symbols (-_.). No space is allowed",wrongTCIdentity:"Wrong TC Identity Number",fieldMustBeTheSame:"This field must be the same as: {{- fields}}",siteUsernameRule:"Only English lowercase letters, digits and symbols (-_.). No space is allowed, no uppercase letters are allowed",adminUsernameRule:"Only English lowercase letters and digits. No symbols (-_. vs) and no space is allowed",fieldMustBeDifferent:"This field must be different from: {{- fields}}"},uploader:{header:"Drag and drop an file",hint:"or Browse to choose a file",fileUploading:"File uploading...",info:"Total: {{- total}} - {{- estimated}} s remaining.",delete:"Delete",preview:"Preview",error:"Error",fileFormatError:"You can only upload {{fileFormat}} file",fileSizeError:"File must smaller than {{fileSize}}",fileUploadSuccess:"File successfully uploaded.",fileUploadFailed:"File upload failed!",removeFileSuccess:"File successfully delete!",browserDoesntSupportDND:"Browser doesn't support drag and drop!",calculating:"Calculating...",removeFile:"Remove File",areYouSureToDeleteThisFile:"Are you sure to delete this file?",yes:"Yes",no:"No"},results:{authentication:{title:"You Need To Sign In",subtitle:"You need to login to access this page. Please login by clicking the button below.",button:"LOGIN"}},currencies:{TRY:"Turkish Lira",EUR:"Euro",USD:"Dollar"},countries:{af:"Afghanistan",al:"Albania",dz:"Algeria",ad:"Andorra",ao:"Angola",ag:"Antigua and Barbuda",ar:"Argentina",am:"Armenia",au:"Australia",at:"Austria",az:"Azerbaijan",bs:"Bahamas",bh:"Bahrain",bd:"Bangladesh",bb:"Barbados",by:"Belarus",be:"Belgium",bz:"Belize",bj:"Benin",bt:"Bhutan",bo:"Bolivia",ba:"Bosnia and Herzegovina",bw:"Botswana",br:"Brazil",bn:"Brunei Darussalam",bg:"Bulgaria",bf:"Burkina Faso",bi:"Burundi",cv:"Cabo Verde",kh:"Cambodia",cm:"Cameroon",ca:"Canada",cf:"Central African Republic",td:"Chad",cl:"Chile",cn:"China",co:"Colombia",km:"Comoros",cg:"Congo",cd:"Congo, Democratic",cr:"Costa Rica",ci:"Côte d'Ivoire",hr:"Croatia",cu:"Cuba",cw:"Curacao",cy:"Cyprus",cz:"Czechia",dk:"Denmark",dj:"Djibouti",dm:"Dominica",do:"Dominican Republic",ec:"Ecuador",eg:"Egypt",sv:"El Salvador",gq:"Equatorial Guinea",er:"Eritrea",ee:"Estonia",sz:"Eswatini",et:"Ethiopia",fj:"Fiji",fi:"Finland",fr:"France",ga:"Gabon",gm:"Gambia",ge:"Georgia",de:"Germany",gh:"Ghana",gr:"Greece",gd:"Grenada",gt:"Guatemala",gn:"Guinea",gw:"Guinea-Bissau",gy:"Guyana",ht:"Haiti",hn:"Honduras",hu:"Hungary",is:"Iceland",in:"India",id:"Indonesia",ir:"Iran",iq:"Iraq",ie:"Ireland",il:"Israel",it:"Italy",jm:"Jamaica",jp:"Japan",jo:"Jordan",kz:"Kazakhstan",ke:"Kenya",ki:"Kiribati",kp:"North Korea",kr:"South Korea",kw:"Kuwait",kg:"Kyrgyzstan",la:"Lao People's",lv:"Latvia",lb:"Lebanon",ls:"Lesotho",lr:"Liberia",ly:"Libya",li:"Liechtenstein",lt:"Lithuania",lu:"Luxembourg",mg:"Madagascar",mw:"Malawi",my:"Malaysia",mv:"Maldives",ml:"Mali",mt:"Malta",mh:"Marshall Islands",mr:"Mauritania",mu:"Mauritius",mx:"Mexico",fm:"Micronesia",md:"Moldova, Republic of",mc:"Monaco",mn:"Mongolia",me:"Montenegro",ma:"Morocco",mz:"Mozambique",mm:"Myanmar",na:"Namibia",nr:"Nauru",np:"Nepal",nl:"Netherlands",nz:"New Zealand",ni:"Nicaragua",ne:"Niger",ng:"Nigeria",mk:"North Macedonia",no:"Norway",om:"Oman",pk:"Pakistan",pw:"Palau",pa:"Panama",pg:"Papua New Guinea",py:"Paraguay",pe:"Peru",ph:"Philippines",pl:"Poland",pt:"Portugal",qa:"Qatar",ro:"Romania",ru:"Russian Federation",rw:"Rwanda",kn:"Saint Kitts and Nevis",lc:"Saint Lucia",vc:"Saint Vincent",ws:"Samoa",sm:"San Marino",st:"Sao Tome and Principe",sa:"Saudi Arabia",sn:"Senegal",rs:"Serbia",sc:"Seychelles",sl:"Sierra Leone",sg:"Singapore",sk:"Slovakia",si:"Slovenia",sb:"Solomon Islands",so:"Somalia",za:"South Africa",ss:"South Sudan",es:"Spain",lk:"Sri Lanka",sd:"Sudan",sr:"Suriname",se:"Sweden",ch:"Switzerland",sy:"Syrian Arab Republic",tj:"Tajikistan",tw:"Taiwan",tz:"Tanzania",th:"Thailand",tl:"Timor-Leste",tg:"Togo",to:"Tonga",tt:"Trinidad and Tobago",tn:"Tunisia",tr:"Turkey",tm:"Turkmenistan",tv:"Tuvalu",ug:"Uganda",ua:"Ukraine",ae:"United Arab Emirates",gb:"United Kingdom",us:"United States of America",uy:"Uruguay",uz:"Uzbekistan",vu:"Vanuatu",ve:"Venezuela",vn:"Viet Nam",ye:"Yemen",zm:"Zambia",zw:"Zimbabwe"},calendar:{weekdaysLong:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],firstDay:0,format:"MM/DD/YYYY"}},U={weekdaysLong:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],weekdaysShort:["Pt","Sa","Ça","Pe","Cu","Ct","Pz"],months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],firstDay:1,format:"DD/MM/YYYY"},H={weekdaysLong:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],firstDay:0,format:"MM/DD/YYYY"};!function(e){e.NOT_SHOW="modal-not-show",e.BEGIN="modal-begin",e.ENTERING="modal-entering",e.ENTERED="modal-entered",e.EXITING="modal-exiting",e.EXITED="modal-exited",e.REMOVED="modal-removed",e.OK_CLICK="modal-ok-button-click",e.CANCEL_CLICK="modal-cancel-button-click",e.CLOSE_CLICK="modal-close-button-click",e.OUTSIDE_CLICK="modal-outside-click",e.ESC_CLICK="modal-esc-click",e.ALL_REMOVED="modal-all-removed"}(D||(D={})),function(e){e.SVG="image/svg+xml",e.PNG="image/png",e.JPG="image/jpeg",e.GIF="image/gif",e.PDF="application/pdf",e.OTF="font/otf"}(P||(P={})),function(e){e.SVG=".svg",e.PNG=".png",e.JPG=".jpg",e.GIF=".gif",e.PDF=".pdf",e.OTF=".otf"}(I||(I={})),function(e){e.REQUIRED="required",e.TYPE="type"}(F||(F={})),function(e){e.MIN_LENGTH="minLength",e.MAX_LENGTH="maxLength",e.EXACT_LENGTH="exactLength",e.SAME="same",e.NOT_SAME="notSame",e.TC_IDENTITY="TCIdentity",e.PASSWORD="password",e.EMAIL="email",e.USERNAME="username",e.SITE_USERNAME="siteUsername",e.ADMIN_USERNAME="adminUsername"}($||($={}));const Y=["background: #27C13A","color: #2b2b2b","line-height: 20px","border-radius: 20px"].join(";"),G=["background: #3598FE","color: #2B2B2B","line-height: 20px","border-radius: 20px"].join(";"),K=["background: #EAB62C","color: #2B2B2B","line-height: 20px","border-radius: 20px"].join(";"),Q=["background: #C12727","color: #cccccc","line-height: 20px","border-radius: 20px"].join(";"),J=["background: #27C13A","color: #2B2B2B","line-height: 20px","border-radius: 20px"].join(";"),Z=["background: #3598FE","color: #2B2B2B","line-height: 20px","border-radius: 20px"].join(";"),ee=["background: #EAB62C","color: #2B2B2B","line-height: 20px","border-radius: 20px"].join(";"),be=["background: #C12727","color: #cccccc","line-height: 20px","border-radius: 20px"].join(";"),Me=["background: #2B2B2B","color: #cccccc","line-height: 20px","border-radius: 20px"].join(";"),oe=["background-image: url('//i.giphy.com/XKCdA6ERnXp6M.webp')","background-size: 280px 200px","background-repeat: no-repeat","color: #000000","padding: 0px 75px 0 0","line-height: 200px"].join(";");let pe={single:(e,b="info")=>{if("fatal-error"!==b){var M="";"info"===b&&(M=Y),"warning"===b&&(M=K),"debug"===b&&(M=G),"error"===b&&(M=Q),console.log("%c "+e+" ",M)}else console.log("%c "+e,oe)},double:(e,b,M="info")=>{if("fatal-error"!==M){var o="";"info"===M&&(o=J),"warning"===M&&(o=ee),"debug"===M&&(o=Z),"error"===M&&(o=be),console.log("%c "+e+": %c "+b+" ",o,Me)}else console.log("%c "+e+": %c "+b+" ",o,oe)},table:e=>{console.table(e)}};const ze=e=>{let b;const[M,o]=n("");O((()=>()=>{document.body.removeChild(b)}),[]);return{loadReCaptcha:e=>{b=document.createElement("script"),b.src="https://www.google.com/recaptcha/api.js?render="+e,b.onload=function(){o(e)},document.body.appendChild(b)},executeReCaptcha:()=>{if(""===M)return pe.double("useReCaptcha","Not yet initialized! reCaptcha can't execute right now.","error"),void(e&&e(null));window.grecaptcha.ready((b=>{try{window.grecaptcha.execute(M,{action:"login"}).then((b=>{pe.double("ReCaptcha V3","Token is valid"),console.log("token: "+b),e&&e(b)}))}catch(e){pe.double("ReCaptcha V3","Token is invalid","error")}}))}}},te=(e=()=>{})=>{const[b,M]=n(!1);b||(e(),M(!0))},ce=(e,b=!1)=>{O((()=>{var o=!1,p=document.head,z=M();return document.querySelectorAll("head > link").forEach((b=>{-1!==b.href.indexOf(e)&&(o=!0)})),o||p.appendChild(z),()=>{b&&document.querySelectorAll("head > link").forEach((b=>{-1!==b.href.indexOf(e)&&document.head.removeChild(b)}))}}),[e]);const M=()=>{var b=document.createElement("link");return b.type="text/css",b.rel="stylesheet",b.href=e,b}};var ne="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},Oe="object"==typeof ne&&ne&&ne.Object===Object&&ne,re="object"==typeof self&&self&&self.Object===Object&&self,ie=(Oe||re||Function("return this")()).Symbol;var ae=Array.isArray,Ae=Object.prototype,se=Ae.hasOwnProperty,de=Ae.toString,le=ie?ie.toStringTag:void 0;var qe=Object.prototype.toString;var ue=ie?ie.toStringTag:void 0;function fe(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ue&&ue in Object(e)?function(e){var b=se.call(e,le),M=e[le];try{e[le]=void 0;var o=!0}catch(e){}var p=de.call(e);return o&&(b?e[le]=M:delete e[le]),p}(e):function(e){return qe.call(e)}(e)}var We=ie?ie.prototype:void 0,he=We?We.toString:void 0;function me(e){if("string"==typeof e)return e;if(ae(e))return function(e,b){for(var M=-1,o=null==e?0:e.length,p=Array(o);++M<o;)p[M]=b(e[M],M,e);return p}(e,me)+"";if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&"[object Symbol]"==fe(e)}(e))return he?he.call(e):"";var b=e+"";return"0"==b&&1/e==-1/0?"-0":b}var Re=0;function ge(e){var b,M=++Re;return(null==(b=e)?"":me(b))+M}function Le(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ve,Ne={exports:{}},ye={exports:{}},Be={exports:{}},xe={exports:{}},we={exports:{}},Xe={exports:{}},ke={},Te={exports:{}};function Se(){return ve||(ve=1,function(e,b){function M(e){for(var b=e.toLowerCase(),M="",o=!1,p=0;p<6&&void 0!==b[p];p++){var z=b.charCodeAt(p);if(o=32===z,!(z>=97&&z<=102||z>=48&&z<=57))break;M+=b[p]}if(0!==M.length){var t=parseInt(M,16);return t>=55296&&t<=57343||0===t||t>1114111?["�",M.length+(o?1:0)]:[String.fromCodePoint(t),M.length+(o?1:0)]}}b.__esModule=!0,b.default=function(e){if(!o.test(e))return e;for(var b="",p=0;p<e.length;p++)if("\\"!==e[p])b+=e[p];else{var z=M(e.slice(p+1,p+7));if(void 0!==z){b+=z[0],p+=z[1];continue}if("\\"===e[p+1]){b+="\\",p++;continue}e.length===p+1&&(b+=e[p])}return b};var o=/\\/;e.exports=b.default}(Te,Te.exports)),Te.exports}var _e,Ee={exports:{}};var Ce,De={exports:{}};var Pe,Ie,Fe,$e={exports:{}};function je(){if(Ie)return ke;Ie=1,ke.__esModule=!0,ke.unesc=ke.stripComments=ke.getProp=ke.ensureObject=void 0;var e=t(Se());ke.unesc=e.default;var b,M,o=t((_e||(_e=1,b=Ee,(M=Ee.exports).__esModule=!0,M.default=function(e){for(var b=arguments.length,M=new Array(b>1?b-1:0),o=1;o<b;o++)M[o-1]=arguments[o];for(;M.length>0;){var p=M.shift();if(!e[p])return;e=e[p]}return e},b.exports=M.default),Ee.exports));ke.getProp=o.default;var p=t(function(){return Ce||(Ce=1,e=De,(b=De.exports).__esModule=!0,b.default=function(e){for(var b=arguments.length,M=new Array(b>1?b-1:0),o=1;o<b;o++)M[o-1]=arguments[o];for(;M.length>0;){var p=M.shift();e[p]||(e[p]={}),e=e[p]}},e.exports=b.default),De.exports;var e,b}());ke.ensureObject=p.default;var z=t(function(){return Pe||(Pe=1,e=$e,(b=$e.exports).__esModule=!0,b.default=function(e){for(var b="",M=e.indexOf("/*"),o=0;M>=0;){b+=e.slice(o,M);var p=e.indexOf("*/",M+2);if(p<0)return b;o=p+2,M=e.indexOf("/*",o)}return b+e.slice(o)},e.exports=b.default),$e.exports;var e,b}());function t(e){return e&&e.__esModule?e:{default:e}}return ke.stripComments=z.default,ke}function Ve(){return Fe||(Fe=1,function(e,b){b.__esModule=!0,b.default=void 0;var M=je();function o(e,b,M){return b&&function(e,b){for(var M=0;M<b.length;M++){var o=b[M];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(e.prototype,b),Object.defineProperty(e,"prototype",{writable:!1}),e}var p=function e(b,M){if("object"!=typeof b||null===b)return b;var o=new b.constructor;for(var p in b)if(b.hasOwnProperty(p)){var z=b[p];"parent"===p&&"object"===typeof z?M&&(o[p]=M):o[p]=z instanceof Array?z.map((function(b){return e(b,o)})):e(z,o)}return o},z=function(){function e(e){void 0===e&&(e={}),Object.assign(this,e),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var b=e.prototype;return b.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},b.replaceWith=function(){if(this.parent){for(var e in arguments)this.parent.insertBefore(this,arguments[e]);this.remove()}return this},b.next=function(){return this.parent.at(this.parent.index(this)+1)},b.prev=function(){return this.parent.at(this.parent.index(this)-1)},b.clone=function(e){void 0===e&&(e={});var b=p(this);for(var M in e)b[M]=e[M];return b},b.appendToPropertyAndEscape=function(e,b,M){this.raws||(this.raws={});var o=this[e],p=this.raws[e];this[e]=o+b,p||M!==b?this.raws[e]=(p||o)+M:delete this.raws[e]},b.setPropertyAndEscape=function(e,b,M){this.raws||(this.raws={}),this[e]=b,this.raws[e]=M},b.setPropertyWithoutEscape=function(e,b){this[e]=b,this.raws&&delete this.raws[e]},b.isAtPosition=function(e,b){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>e)&&(!(this.source.end.line<e)&&(!(this.source.start.line===e&&this.source.start.column>b)&&!(this.source.end.line===e&&this.source.end.column<b)))},b.stringifyProperty=function(e){return this.raws&&this.raws[e]||this[e]},b.valueToString=function(){return String(this.stringifyProperty("value"))},b.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},o(e,[{key:"rawSpaceBefore",get:function(){var e=this.raws&&this.raws.spaces&&this.raws.spaces.before;return void 0===e&&(e=this.spaces&&this.spaces.before),e||""},set:function(e){(0,M.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=e}},{key:"rawSpaceAfter",get:function(){var e=this.raws&&this.raws.spaces&&this.raws.spaces.after;return void 0===e&&(e=this.spaces.after),e||""},set:function(e){(0,M.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=e}}]),e}();b.default=z,e.exports=b.default}(Xe,Xe.exports)),Xe.exports}var Ue,He,Ye,Ge={};function Ke(){if(Ue)return Ge;Ue=1,Ge.__esModule=!0,Ge.UNIVERSAL=Ge.TAG=Ge.STRING=Ge.SELECTOR=Ge.ROOT=Ge.PSEUDO=Ge.NESTING=Ge.ID=Ge.COMMENT=Ge.COMBINATOR=Ge.CLASS=Ge.ATTRIBUTE=void 0;Ge.TAG="tag";Ge.STRING="string";Ge.SELECTOR="selector";Ge.ROOT="root";Ge.PSEUDO="pseudo";Ge.NESTING="nesting";Ge.ID="id";Ge.COMMENT="comment";Ge.COMBINATOR="combinator";Ge.CLASS="class";Ge.ATTRIBUTE="attribute";return Ge.UNIVERSAL="universal",Ge}function Qe(){return He||(He=1,function(e,b){b.__esModule=!0,b.default=void 0;var M,o=(M=Ve())&&M.__esModule?M:{default:M},p=function(e,b){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var M=z(b);if(M&&M.has(e))return M.get(e);var o={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var t in e)if("default"!==t&&Object.prototype.hasOwnProperty.call(e,t)){var c=p?Object.getOwnPropertyDescriptor(e,t):null;c&&(c.get||c.set)?Object.defineProperty(o,t,c):o[t]=e[t]}o.default=e,M&&M.set(e,o);return o}(Ke());function z(e){if("function"!=typeof WeakMap)return null;var b=new WeakMap,M=new WeakMap;return(z=function(e){return e?M:b})(e)}function t(e,b){var M="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(M)return(M=M.call(e)).next.bind(M);if(Array.isArray(e)||(M=function(e,b){if(!e)return;if("string"==typeof e)return c(e,b);var M=Object.prototype.toString.call(e).slice(8,-1);"Object"===M&&e.constructor&&(M=e.constructor.name);if("Map"===M||"Set"===M)return Array.from(e);if("Arguments"===M||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return c(e,b)}(e))||b){M&&(e=M);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,b){(null==b||b>e.length)&&(b=e.length);for(var M=0,o=new Array(b);M<b;M++)o[M]=e[M];return o}function n(e,b,M){return b&&function(e,b){for(var M=0;M<b.length;M++){var o=b[M];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(e.prototype,b),Object.defineProperty(e,"prototype",{writable:!1}),e}function O(e,b){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,b){return e.__proto__=b,e},O(e,b)}var r=function(e){var b,M;function o(b){var M;return(M=e.call(this,b)||this).nodes||(M.nodes=[]),M}M=e,(b=o).prototype=Object.create(M.prototype),b.prototype.constructor=b,O(b,M);var z=o.prototype;return z.append=function(e){return e.parent=this,this.nodes.push(e),this},z.prepend=function(e){for(var b in e.parent=this,this.nodes.unshift(e),this.indexes)this.indexes[b]++;return this},z.at=function(e){return this.nodes[e]},z.index=function(e){return"number"==typeof e?e:this.nodes.indexOf(e)},z.removeChild=function(e){var b;for(var M in e=this.index(e),this.at(e).parent=void 0,this.nodes.splice(e,1),this.indexes)(b=this.indexes[M])>=e&&(this.indexes[M]=b-1);return this},z.removeAll=function(){for(var e,b=t(this.nodes);!(e=b()).done;){e.value.parent=void 0}return this.nodes=[],this},z.empty=function(){return this.removeAll()},z.insertAfter=function(e,b){b.parent=this;var M,o=this.index(e);for(var p in this.nodes.splice(o+1,0,b),b.parent=this,this.indexes)o<(M=this.indexes[p])&&(this.indexes[p]=M+1);return this},z.insertBefore=function(e,b){b.parent=this;var M,o=this.index(e);for(var p in this.nodes.splice(o,0,b),b.parent=this,this.indexes)(M=this.indexes[p])>=o&&(this.indexes[p]=M+1);return this},z._findChildAtPosition=function(e,b){var M=void 0;return this.each((function(o){if(o.atPosition){var p=o.atPosition(e,b);if(p)return M=p,!1}else if(o.isAtPosition(e,b))return M=o,!1})),M},z.atPosition=function(e,b){return this.isAtPosition(e,b)?this._findChildAtPosition(e,b)||this:void 0},z._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},z.each=function(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var b=this.lastEach;if(this.indexes[b]=0,this.length){for(var M,o;this.indexes[b]<this.length&&(M=this.indexes[b],!1!==(o=e(this.at(M),M)));)this.indexes[b]+=1;return delete this.indexes[b],!1!==o&&void 0}},z.walk=function(e){return this.each((function(b,M){var o=e(b,M);if(!1!==o&&b.length&&(o=b.walk(e)),!1===o)return!1}))},z.walkAttributes=function(e){var b=this;return this.walk((function(M){if(M.type===p.ATTRIBUTE)return e.call(b,M)}))},z.walkClasses=function(e){var b=this;return this.walk((function(M){if(M.type===p.CLASS)return e.call(b,M)}))},z.walkCombinators=function(e){var b=this;return this.walk((function(M){if(M.type===p.COMBINATOR)return e.call(b,M)}))},z.walkComments=function(e){var b=this;return this.walk((function(M){if(M.type===p.COMMENT)return e.call(b,M)}))},z.walkIds=function(e){var b=this;return this.walk((function(M){if(M.type===p.ID)return e.call(b,M)}))},z.walkNesting=function(e){var b=this;return this.walk((function(M){if(M.type===p.NESTING)return e.call(b,M)}))},z.walkPseudos=function(e){var b=this;return this.walk((function(M){if(M.type===p.PSEUDO)return e.call(b,M)}))},z.walkTags=function(e){var b=this;return this.walk((function(M){if(M.type===p.TAG)return e.call(b,M)}))},z.walkUniversals=function(e){var b=this;return this.walk((function(M){if(M.type===p.UNIVERSAL)return e.call(b,M)}))},z.split=function(e){var b=this,M=[];return this.reduce((function(o,p,z){var t=e.call(b,p);return M.push(p),t?(o.push(M),M=[]):z===b.length-1&&o.push(M),o}),[])},z.map=function(e){return this.nodes.map(e)},z.reduce=function(e,b){return this.nodes.reduce(e,b)},z.every=function(e){return this.nodes.every(e)},z.some=function(e){return this.nodes.some(e)},z.filter=function(e){return this.nodes.filter(e)},z.sort=function(e){return this.nodes.sort(e)},z.toString=function(){return this.map(String).join("")},n(o,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),o}(o.default);b.default=r,e.exports=b.default}(we,we.exports)),we.exports}function Je(){return Ye||(Ye=1,function(e,b){b.__esModule=!0,b.default=void 0;var M,o=(M=Qe())&&M.__esModule?M:{default:M},p=Ke();function z(e,b,M){return b&&function(e,b){for(var M=0;M<b.length;M++){var o=b[M];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(e.prototype,b),Object.defineProperty(e,"prototype",{writable:!1}),e}function t(e,b){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,b){return e.__proto__=b,e},t(e,b)}var c=function(e){var b,M;function o(b){var M;return(M=e.call(this,b)||this).type=p.ROOT,M}M=e,(b=o).prototype=Object.create(M.prototype),b.prototype.constructor=b,t(b,M);var c=o.prototype;return c.toString=function(){var e=this.reduce((function(e,b){return e.push(String(b)),e}),[]).join(",");return this.trailingComma?e+",":e},c.error=function(e,b){return this._error?this._error(e,b):new Error(e)},z(o,[{key:"errorGenerator",set:function(e){this._error=e}}]),o}(o.default);b.default=c,e.exports=b.default}(xe,xe.exports)),xe.exports}var Ze,eb={exports:{}};function bb(){return Ze||(Ze=1,function(e,b){b.__esModule=!0,b.default=void 0;var M,o=(M=Qe())&&M.__esModule?M:{default:M},p=Ke();function z(e,b){return z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,b){return e.__proto__=b,e},z(e,b)}var t=function(e){var b,M;function o(b){var M;return(M=e.call(this,b)||this).type=p.SELECTOR,M}return M=e,(b=o).prototype=Object.create(M.prototype),b.prototype.constructor=b,z(b,M),o}(o.default);b.default=t,e.exports=b.default}(eb,eb.exports)),eb.exports}var Mb,ob,pb,zb={exports:{}};
|
|
2
2
|
/*! https://mths.be/cssesc v3.0.0 by @mathias */function tb(){if(ob)return Mb;ob=1;var e={}.hasOwnProperty,b=/[ -,\.\/:-@\[-\^`\{-~]/,M=/[ -,\.\/:-@\[\]\^`\{-~]/,o=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,p=function p(z,t){t=function(b,M){if(!b)return M;var o={};for(var p in M)o[p]=e.call(b,p)?b[p]:M[p];return o}(t,p.options),"single"!=t.quotes&&"double"!=t.quotes&&(t.quotes="single");for(var c="double"==t.quotes?'"':"'",n=t.isIdentifier,O=z.charAt(0),r="",i=0,a=z.length;i<a;){var A=z.charAt(i++),s=A.charCodeAt(),d=void 0;if(s<32||s>126){if(s>=55296&&s<=56319&&i<a){var l=z.charCodeAt(i++);56320==(64512&l)?s=((1023&s)<<10)+(1023&l)+65536:i--}d="\\"+s.toString(16).toUpperCase()+" "}else d=t.escapeEverything?b.test(A)?"\\"+A:"\\"+s.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(A)?"\\"+s.toString(16).toUpperCase()+" ":"\\"==A||!n&&('"'==A&&c==A||"'"==A&&c==A)||n&&M.test(A)?"\\"+A:A;r+=d}return n&&(/^-[-\d]/.test(r)?r="\\-"+r.slice(1):/\d/.test(O)&&(r="\\3"+O+" "+r.slice(1))),r=r.replace(o,(function(e,b,M){return b&&b.length%2?e:(b||"")+M})),!n&&t.wrap?c+r+c:r};return p.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},p.version="3.0.0",Mb=p}function cb(){return pb||(pb=1,function(e,b){b.__esModule=!0,b.default=void 0;var M=t(tb()),o=je(),p=t(Ve()),z=Ke();function t(e){return e&&e.__esModule?e:{default:e}}function c(e,b,M){return b&&function(e,b){for(var M=0;M<b.length;M++){var o=b[M];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(e.prototype,b),Object.defineProperty(e,"prototype",{writable:!1}),e}function n(e,b){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,b){return e.__proto__=b,e},n(e,b)}var O=function(e){var b,p;function t(b){var M;return(M=e.call(this,b)||this).type=z.CLASS,M._constructed=!0,M}return p=e,(b=t).prototype=Object.create(p.prototype),b.prototype.constructor=b,n(b,p),t.prototype.valueToString=function(){return"."+e.prototype.valueToString.call(this)},c(t,[{key:"value",get:function(){return this._value},set:function(e){if(this._constructed){var b=(0,M.default)(e,{isIdentifier:!0});b!==e?((0,o.ensureObject)(this,"raws"),this.raws.value=b):this.raws&&delete this.raws.value}this._value=e}}]),t}(p.default);b.default=O,e.exports=b.default}(zb,zb.exports)),zb.exports}var nb,Ob={exports:{}};function rb(){return nb||(nb=1,function(e,b){b.__esModule=!0,b.default=void 0;var M,o=(M=Ve())&&M.__esModule?M:{default:M},p=Ke();function z(e,b){return z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,b){return e.__proto__=b,e},z(e,b)}var t=function(e){var b,M;function o(b){var M;return(M=e.call(this,b)||this).type=p.COMMENT,M}return M=e,(b=o).prototype=Object.create(M.prototype),b.prototype.constructor=b,z(b,M),o}(o.default);b.default=t,e.exports=b.default}(Ob,Ob.exports)),Ob.exports}var ib,ab={exports:{}};function Ab(){return ib||(ib=1,function(e,b){b.__esModule=!0,b.default=void 0;var M,o=(M=Ve())&&M.__esModule?M:{default:M},p=Ke();function z(e,b){return z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,b){return e.__proto__=b,e},z(e,b)}var t=function(e){var b,M;function o(b){var M;return(M=e.call(this,b)||this).type=p.ID,M}return M=e,(b=o).prototype=Object.create(M.prototype),b.prototype.constructor=b,z(b,M),o.prototype.valueToString=function(){return"#"+e.prototype.valueToString.call(this)},o}(o.default);b.default=t,e.exports=b.default}(ab,ab.exports)),ab.exports}var sb,db,lb={exports:{}},qb={exports:{}};function ub(){return sb||(sb=1,function(e,b){b.__esModule=!0,b.default=void 0;var M=p(tb()),o=je();function p(e){return e&&e.__esModule?e:{default:e}}function z(e,b,M){return b&&function(e,b){for(var M=0;M<b.length;M++){var o=b[M];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(e.prototype,b),Object.defineProperty(e,"prototype",{writable:!1}),e}function t(e,b){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,b){return e.__proto__=b,e},t(e,b)}var c=function(e){var b,p;function c(){return e.apply(this,arguments)||this}p=e,(b=c).prototype=Object.create(p.prototype),b.prototype.constructor=b,t(b,p);var n=c.prototype;return n.qualifiedName=function(e){return this.namespace?this.namespaceString+"|"+e:e},n.valueToString=function(){return this.qualifiedName(e.prototype.valueToString.call(this))},z(c,[{key:"namespace",get:function(){return this._namespace},set:function(e){if(!0===e||"*"===e||"&"===e)return this._namespace=e,void(this.raws&&delete this.raws.namespace);var b=(0,M.default)(e,{isIdentifier:!0});this._namespace=e,b!==e?((0,o.ensureObject)(this,"raws"),this.raws.namespace=b):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(e){this.namespace=e}},{key:"namespaceString",get:function(){if(this.namespace){var e=this.stringifyProperty("namespace");return!0===e?"":e}return""}}]),c}(p(Ve()).default);b.default=c,e.exports=b.default}(qb,qb.exports)),qb.exports}function fb(){return db||(db=1,function(e,b){b.__esModule=!0,b.default=void 0;var M,o=(M=ub())&&M.__esModule?M:{default:M},p=Ke();function z(e,b){return z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,b){return e.__proto__=b,e},z(e,b)}var t=function(e){var b,M;function o(b){var M;return(M=e.call(this,b)||this).type=p.TAG,M}return M=e,(b=o).prototype=Object.create(M.prototype),b.prototype.constructor=b,z(b,M),o}(o.default);b.default=t,e.exports=b.default}(lb,lb.exports)),lb.exports}var Wb,hb={exports:{}};function mb(){return Wb||(Wb=1,function(e,b){b.__esModule=!0,b.default=void 0;var M,o=(M=Ve())&&M.__esModule?M:{default:M},p=Ke();function z(e,b){return z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,b){return e.__proto__=b,e},z(e,b)}var t=function(e){var b,M;function o(b){var M;return(M=e.call(this,b)||this).type=p.STRING,M}return M=e,(b=o).prototype=Object.create(M.prototype),b.prototype.constructor=b,z(b,M),o}(o.default);b.default=t,e.exports=b.default}(hb,hb.exports)),hb.exports}var Rb,gb={exports:{}};function Lb(){return Rb||(Rb=1,function(e,b){b.__esModule=!0,b.default=void 0;var M,o=(M=Qe())&&M.__esModule?M:{default:M},p=Ke();function z(e,b){return z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,b){return e.__proto__=b,e},z(e,b)}var t=function(e){var b,M;function o(b){var M;return(M=e.call(this,b)||this).type=p.PSEUDO,M}return M=e,(b=o).prototype=Object.create(M.prototype),b.prototype.constructor=b,z(b,M),o.prototype.toString=function(){var e=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),e,this.rawSpaceAfter].join("")},o}(o.default);b.default=t,e.exports=b.default}(gb,gb.exports)),gb.exports}var vb={};function Nb(e){return null!=e&&(!!e._isBuffer||yb(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&yb(e.slice(0,0))}(e))}function yb(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}void 0===ne.TYPED_ARRAY_SUPPORT||ne.TYPED_ARRAY_SUPPORT,ne.setTimeout,ne.clearTimeout;var Bb=ne.performance||{};Bb.now||Bb.mozNow||Bb.msNow||Bb.oNow||Bb.webkitNow;var xb={env:{}},wb="function"==typeof Object.create?function(e,b){e.super_=b,e.prototype=Object.create(b.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,b){e.super_=b;var M=function(){};M.prototype=b.prototype,e.prototype=new M,e.prototype.constructor=e},Xb=/%[sdj%]/g;function kb(e){if(!Gb(e)){for(var b=[],M=0;M<arguments.length;M++)b.push(Cb(arguments[M]));return b.join(" ")}M=1;for(var o=arguments,p=o.length,z=String(e).replace(Xb,(function(e){if("%%"===e)return"%";if(M>=p)return e;switch(e){case"%s":return String(o[M++]);case"%d":return Number(o[M++]);case"%j":try{return JSON.stringify(o[M++])}catch(e){return"[Circular]"}default:return e}})),t=o[M];M<p;t=o[++M])Ub(t)||!Zb(t)?z+=" "+t:z+=" "+Cb(t);return z}function Tb(e,b){if(Qb(ne.process))return function(){return Tb(e,b).apply(this,arguments)};if(!0===xb.noDeprecation)return e;var M=!1;return function(){if(!M){if(xb.throwDeprecation)throw new Error(b);xb.traceDeprecation?console.trace(b):console.error(b),M=!0}return e.apply(this,arguments)}}var Sb,_b={};function Eb(e){if(Qb(Sb)&&(Sb=xb.env.NODE_DEBUG||""),e=e.toUpperCase(),!_b[e])if(new RegExp("\\b"+e+"\\b","i").test(Sb)){_b[e]=function(){var b=kb.apply(null,arguments);console.error("%s %d: %s",e,0,b)}}else _b[e]=function(){};return _b[e]}function Cb(e,b){var M={seen:[],stylize:Pb};return arguments.length>=3&&(M.depth=arguments[2]),arguments.length>=4&&(M.colors=arguments[3]),Vb(b)?M.showHidden=b:b&&OM(M,b),Qb(M.showHidden)&&(M.showHidden=!1),Qb(M.depth)&&(M.depth=2),Qb(M.colors)&&(M.colors=!1),Qb(M.customInspect)&&(M.customInspect=!0),M.colors&&(M.stylize=Db),Ib(M,e,M.depth)}function Db(e,b){var M=Cb.styles[b];return M?"["+Cb.colors[M][0]+"m"+e+"["+Cb.colors[M][1]+"m":e}function Pb(e,b){return e}function Ib(e,b,M){if(e.customInspect&&b&&MM(b.inspect)&&b.inspect!==Cb&&(!b.constructor||b.constructor.prototype!==b)){var o=b.inspect(M,e);return Gb(o)||(o=Ib(e,o,M)),o}var p=function(e,b){if(Qb(b))return e.stylize("undefined","undefined");if(Gb(b)){var M="'"+JSON.stringify(b).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(M,"string")}if(Yb(b))return e.stylize(""+b,"number");if(Vb(b))return e.stylize(""+b,"boolean");if(Ub(b))return e.stylize("null","null")}(e,b);if(p)return p;var z=Object.keys(b),t=function(e){var b={};return e.forEach((function(e,M){b[e]=!0})),b}(z);if(e.showHidden&&(z=Object.getOwnPropertyNames(b)),bM(b)&&(z.indexOf("message")>=0||z.indexOf("description")>=0))return Fb(b);if(0===z.length){if(MM(b)){var c=b.name?": "+b.name:"";return e.stylize("[Function"+c+"]","special")}if(Jb(b))return e.stylize(RegExp.prototype.toString.call(b),"regexp");if(eM(b))return e.stylize(Date.prototype.toString.call(b),"date");if(bM(b))return Fb(b)}var n,O="",r=!1,i=["{","}"];(jb(b)&&(r=!0,i=["[","]"]),MM(b))&&(O=" [Function"+(b.name?": "+b.name:"")+"]");return Jb(b)&&(O=" "+RegExp.prototype.toString.call(b)),eM(b)&&(O=" "+Date.prototype.toUTCString.call(b)),bM(b)&&(O=" "+Fb(b)),0!==z.length||r&&0!=b.length?M<0?Jb(b)?e.stylize(RegExp.prototype.toString.call(b),"regexp"):e.stylize("[Object]","special"):(e.seen.push(b),n=r?function(e,b,M,o,p){for(var z=[],t=0,c=b.length;t<c;++t)rM(b,String(t))?z.push($b(e,b,M,o,String(t),!0)):z.push("");return p.forEach((function(p){p.match(/^\d+$/)||z.push($b(e,b,M,o,p,!0))})),z}(e,b,M,t,z):z.map((function(o){return $b(e,b,M,t,o,r)})),e.seen.pop(),function(e,b,M){var o=e.reduce((function(e,b){return b.indexOf("\n"),e+b.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(o>60)return M[0]+(""===b?"":b+"\n ")+" "+e.join(",\n ")+" "+M[1];return M[0]+b+" "+e.join(", ")+" "+M[1]}(n,O,i)):i[0]+O+i[1]}function Fb(e){return"["+Error.prototype.toString.call(e)+"]"}function $b(e,b,M,o,p,z){var t,c,n;if((n=Object.getOwnPropertyDescriptor(b,p)||{value:b[p]}).get?c=n.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):n.set&&(c=e.stylize("[Setter]","special")),rM(o,p)||(t="["+p+"]"),c||(e.seen.indexOf(n.value)<0?(c=Ub(M)?Ib(e,n.value,null):Ib(e,n.value,M-1)).indexOf("\n")>-1&&(c=z?c.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+c.split("\n").map((function(e){return" "+e})).join("\n")):c=e.stylize("[Circular]","special")),Qb(t)){if(z&&p.match(/^\d+$/))return c;(t=JSON.stringify(""+p)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(t=t.substr(1,t.length-2),t=e.stylize(t,"name")):(t=t.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),t=e.stylize(t,"string"))}return t+": "+c}function jb(e){return Array.isArray(e)}function Vb(e){return"boolean"==typeof e}function Ub(e){return null===e}function Hb(e){return null==e}function Yb(e){return"number"==typeof e}function Gb(e){return"string"==typeof e}function Kb(e){return"symbol"==typeof e}function Qb(e){return void 0===e}function Jb(e){return Zb(e)&&"[object RegExp]"===zM(e)}function Zb(e){return"object"==typeof e&&null!==e}function eM(e){return Zb(e)&&"[object Date]"===zM(e)}function bM(e){return Zb(e)&&("[object Error]"===zM(e)||e instanceof Error)}function MM(e){return"function"==typeof e}function oM(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function pM(e){return Nb(e)}function zM(e){return Object.prototype.toString.call(e)}function tM(e){return e<10?"0"+e.toString(10):e.toString(10)}Cb.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},Cb.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var cM=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function nM(){console.log("%s - %s",function(){var e=new Date,b=[tM(e.getHours()),tM(e.getMinutes()),tM(e.getSeconds())].join(":");return[e.getDate(),cM[e.getMonth()],b].join(" ")}(),kb.apply(null,arguments))}function OM(e,b){if(!b||!Zb(b))return e;for(var M=Object.keys(b),o=M.length;o--;)e[M[o]]=b[M[o]];return e}function rM(e,b){return Object.prototype.hasOwnProperty.call(e,b)}var iM,aM,AM,sM={inherits:wb,_extend:OM,log:nM,isBuffer:pM,isPrimitive:oM,isFunction:MM,isError:bM,isDate:eM,isObject:Zb,isRegExp:Jb,isUndefined:Qb,isSymbol:Kb,isString:Gb,isNumber:Yb,isNullOrUndefined:Hb,isNull:Ub,isBoolean:Vb,isArray:jb,inspect:Cb,deprecate:Tb,format:kb,debuglog:Eb},dM=Object.freeze({__proto__:null,_extend:OM,debuglog:Eb,default:sM,deprecate:Tb,format:kb,inherits:wb,inspect:Cb,isArray:jb,isBoolean:Vb,isBuffer:pM,isDate:eM,isError:bM,isFunction:MM,isNull:Ub,isNullOrUndefined:Hb,isNumber:Yb,isObject:Zb,isPrimitive:oM,isRegExp:Jb,isString:Gb,isSymbol:Kb,isUndefined:Qb,log:nM});function lM(){return AM||(AM=1,function(e){e.__esModule=!0,e.default=void 0,e.unescapeValue=s;var b,M=t(tb()),o=t(Se()),p=t(ub()),z=Ke();function t(e){return e&&e.__esModule?e:{default:e}}function c(e,b,M){return b&&function(e,b){for(var M=0;M<b.length;M++){var o=b[M];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(e.prototype,b),Object.defineProperty(e,"prototype",{writable:!1}),e}function n(e,b){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,b){return e.__proto__=b,e},n(e,b)}var O=aM?iM:(aM=1,iM=dM.deprecate),r=/^('|")([^]*)\1$/,i=O((function(){}),"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),a=O((function(){}),"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),A=O((function(){}),"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function s(e){var b=!1,M=null,p=e,z=p.match(r);return z&&(M=z[1],p=z[2]),(p=(0,o.default)(p))!==e&&(b=!0),{deprecatedUsage:b,unescaped:p,quoteMark:M}}var d=function(e){var b,o;function p(b){var M;return void 0===b&&(b={}),M=e.call(this,function(e){if(void 0!==e.quoteMark)return e;if(void 0===e.value)return e;A();var b=s(e.value),M=b.quoteMark,o=b.unescaped;return e.raws||(e.raws={}),void 0===e.raws.value&&(e.raws.value=e.value),e.value=o,e.quoteMark=M,e}(b))||this,M.type=z.ATTRIBUTE,M.raws=M.raws||{},Object.defineProperty(M.raws,"unquoted",{get:O((function(){return M.value}),"attr.raws.unquoted is deprecated. Call attr.value instead."),set:O((function(){return M.value}),"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),M._constructed=!0,M}o=e,(b=p).prototype=Object.create(o.prototype),b.prototype.constructor=b,n(b,o);var t=p.prototype;return t.getQuotedValue=function(e){void 0===e&&(e={});var b=this._determineQuoteMark(e),o=l[b];return(0,M.default)(this._value,o)},t._determineQuoteMark=function(e){return e.smart?this.smartQuoteMark(e):this.preferredQuoteMark(e)},t.setValue=function(e,b){void 0===b&&(b={}),this._value=e,this._quoteMark=this._determineQuoteMark(b),this._syncRawValue()},t.smartQuoteMark=function(e){var b=this.value,o=b.replace(/[^']/g,"").length,z=b.replace(/[^"]/g,"").length;if(o+z===0){var t=(0,M.default)(b,{isIdentifier:!0});if(t===b)return p.NO_QUOTE;var c=this.preferredQuoteMark(e);if(c===p.NO_QUOTE){var n=this.quoteMark||e.quoteMark||p.DOUBLE_QUOTE,O=l[n];if((0,M.default)(b,O).length<t.length)return n}return c}return z===o?this.preferredQuoteMark(e):z<o?p.DOUBLE_QUOTE:p.SINGLE_QUOTE},t.preferredQuoteMark=function(e){var b=e.preferCurrentQuoteMark?this.quoteMark:e.quoteMark;return void 0===b&&(b=e.preferCurrentQuoteMark?e.quoteMark:this.quoteMark),void 0===b&&(b=p.DOUBLE_QUOTE),b},t._syncRawValue=function(){var e=(0,M.default)(this._value,l[this.quoteMark]);e===this._value?this.raws&&delete this.raws.value:this.raws.value=e},t._handleEscapes=function(e,b){if(this._constructed){var o=(0,M.default)(b,{isIdentifier:!0});o!==b?this.raws[e]=o:delete this.raws[e]}},t._spacesFor=function(e){var b=this.spaces[e]||{},M=this.raws.spaces&&this.raws.spaces[e]||{};return Object.assign({before:"",after:""},b,M)},t._stringFor=function(e,b,M){void 0===b&&(b=e),void 0===M&&(M=q);var o=this._spacesFor(b);return M(this.stringifyProperty(e),o)},t.offsetOf=function(e){var b=1,M=this._spacesFor("attribute");if(b+=M.before.length,"namespace"===e||"ns"===e)return this.namespace?b:-1;if("attributeNS"===e)return b;if(b+=this.namespaceString.length,this.namespace&&(b+=1),"attribute"===e)return b;b+=this.stringifyProperty("attribute").length,b+=M.after.length;var o=this._spacesFor("operator");b+=o.before.length;var p=this.stringifyProperty("operator");if("operator"===e)return p?b:-1;b+=p.length,b+=o.after.length;var z=this._spacesFor("value");b+=z.before.length;var t=this.stringifyProperty("value");return"value"===e?t?b:-1:(b+=t.length,b+=z.after.length,b+=this._spacesFor("insensitive").before.length,"insensitive"===e&&this.insensitive?b:-1)},t.toString=function(){var e=this,b=[this.rawSpaceBefore,"["];return b.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||""===this.value)&&(b.push(this._stringFor("operator")),b.push(this._stringFor("value")),b.push(this._stringFor("insensitiveFlag","insensitive",(function(b,M){return!(b.length>0)||e.quoted||0!==M.before.length||e.spaces.value&&e.spaces.value.after||(M.before=" "),q(b,M)})))),b.push("]"),b.push(this.rawSpaceAfter),b.join("")},c(p,[{key:"quoted",get:function(){var e=this.quoteMark;return"'"===e||'"'===e},set:function(e){a()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(e){this._constructed?this._quoteMark!==e&&(this._quoteMark=e,this._syncRawValue()):this._quoteMark=e}},{key:"qualifiedAttribute",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function(){return this.insensitive?"i":""}},{key:"value",get:function(){return this._value},set:function(e){if(this._constructed){var b=s(e),M=b.deprecatedUsage,o=b.unescaped,p=b.quoteMark;if(M&&i(),o===this._value&&p===this._quoteMark)return;this._value=o,this._quoteMark=p,this._syncRawValue()}else this._value=e}},{key:"insensitive",get:function(){return this._insensitive},set:function(e){e||(this._insensitive=!1,!this.raws||"I"!==this.raws.insensitiveFlag&&"i"!==this.raws.insensitiveFlag||(this.raws.insensitiveFlag=void 0)),this._insensitive=e}},{key:"attribute",get:function(){return this._attribute},set:function(e){this._handleEscapes("attribute",e),this._attribute=e}}]),p}(p.default);e.default=d,d.NO_QUOTE=null,d.SINGLE_QUOTE="'",d.DOUBLE_QUOTE='"';var l=((b={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}}).null={isIdentifier:!0},b);function q(e,b){return""+b.before+e+b.after}}(vb)),vb}var qM,uM={exports:{}};function fM(){return qM||(qM=1,function(e,b){b.__esModule=!0,b.default=void 0;var M,o=(M=ub())&&M.__esModule?M:{default:M},p=Ke();function z(e,b){return z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,b){return e.__proto__=b,e},z(e,b)}var t=function(e){var b,M;function o(b){var M;return(M=e.call(this,b)||this).type=p.UNIVERSAL,M.value="*",M}return M=e,(b=o).prototype=Object.create(M.prototype),b.prototype.constructor=b,z(b,M),o}(o.default);b.default=t,e.exports=b.default}(uM,uM.exports)),uM.exports}var WM,hM={exports:{}};function mM(){return WM||(WM=1,function(e,b){b.__esModule=!0,b.default=void 0;var M,o=(M=Ve())&&M.__esModule?M:{default:M},p=Ke();function z(e,b){return z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,b){return e.__proto__=b,e},z(e,b)}var t=function(e){var b,M;function o(b){var M;return(M=e.call(this,b)||this).type=p.COMBINATOR,M}return M=e,(b=o).prototype=Object.create(M.prototype),b.prototype.constructor=b,z(b,M),o}(o.default);b.default=t,e.exports=b.default}(hM,hM.exports)),hM.exports}var RM,gM={exports:{}};function LM(){return RM||(RM=1,function(e,b){b.__esModule=!0,b.default=void 0;var M,o=(M=Ve())&&M.__esModule?M:{default:M},p=Ke();function z(e,b){return z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,b){return e.__proto__=b,e},z(e,b)}var t=function(e){var b,M;function o(b){var M;return(M=e.call(this,b)||this).type=p.NESTING,M.value="&",M}return M=e,(b=o).prototype=Object.create(M.prototype),b.prototype.constructor=b,z(b,M),o}(o.default);b.default=t,e.exports=b.default}(gM,gM.exports)),gM.exports}var vM,NM={exports:{}};var yM,BM,xM,wM,XM={},kM={};function TM(){if(yM)return kM;yM=1,kM.__esModule=!0,kM.word=kM.tilde=kM.tab=kM.str=kM.space=kM.slash=kM.singleQuote=kM.semicolon=kM.plus=kM.pipe=kM.openSquare=kM.openParenthesis=kM.newline=kM.greaterThan=kM.feed=kM.equals=kM.doubleQuote=kM.dollar=kM.cr=kM.comment=kM.comma=kM.combinator=kM.colon=kM.closeSquare=kM.closeParenthesis=kM.caret=kM.bang=kM.backslash=kM.at=kM.asterisk=kM.ampersand=void 0;kM.ampersand=38;kM.asterisk=42;kM.at=64;kM.comma=44;kM.colon=58;kM.semicolon=59;kM.openParenthesis=40;kM.closeParenthesis=41;kM.openSquare=91;kM.closeSquare=93;kM.dollar=36;kM.tilde=126;kM.caret=94;kM.plus=43;kM.equals=61;kM.pipe=124;kM.greaterThan=62;kM.space=32;kM.singleQuote=39;kM.doubleQuote=34;kM.slash=47;kM.bang=33;kM.backslash=92;kM.cr=13;kM.feed=12;kM.newline=10;kM.tab=9;kM.str=39;kM.comment=-1;kM.word=-2;return kM.combinator=-3,kM}function SM(){return xM||(xM=1,function(e,b){b.__esModule=!0,b.default=void 0;var M,o,p=R(Je()),z=R(bb()),t=R(cb()),c=R(rb()),n=R(Ab()),O=R(fb()),r=R(mb()),i=R(Lb()),a=m(lM()),A=R(fM()),s=R(mM()),d=R(LM()),l=R(function(){return vM||(vM=1,e=NM,(b=NM.exports).__esModule=!0,b.default=function(e){return e.sort((function(e,b){return e-b}))},e.exports=b.default),NM.exports;var e,b}()),q=m((BM||(BM=1,function(e){e.__esModule=!0,e.FIELDS=void 0,e.default=function(e){var b,M,p,z,t,c,n,O,i,a,A,s,d=[],l=e.css.valueOf(),q=l.length,u=-1,f=1,W=0,h=0;function m(b,M){if(!e.safe)throw e.error("Unclosed "+b,f,W-u,W);O=(l+=M).length-1}for(;W<q;){switch((b=l.charCodeAt(W))===o.newline&&(u=W,f+=1),b){case o.space:case o.tab:case o.newline:case o.cr:case o.feed:O=W;do{O+=1,(b=l.charCodeAt(O))===o.newline&&(u=O,f+=1)}while(b===o.space||b===o.newline||b===o.tab||b===o.cr||b===o.feed);s=o.space,p=f,M=O-u-1,h=O;break;case o.plus:case o.greaterThan:case o.tilde:case o.pipe:O=W;do{O+=1,b=l.charCodeAt(O)}while(b===o.plus||b===o.greaterThan||b===o.tilde||b===o.pipe);s=o.combinator,p=f,M=W-u,h=O;break;case o.asterisk:case o.ampersand:case o.bang:case o.comma:case o.equals:case o.dollar:case o.caret:case o.openSquare:case o.closeSquare:case o.colon:case o.semicolon:case o.openParenthesis:case o.closeParenthesis:s=b,p=f,M=W-u,h=(O=W)+1;break;case o.singleQuote:case o.doubleQuote:A=b===o.singleQuote?"'":'"',O=W;do{for(z=!1,-1===(O=l.indexOf(A,O+1))&&m("quote",A),t=O;l.charCodeAt(t-1)===o.backslash;)t-=1,z=!z}while(z);s=o.str,p=f,M=W-u,h=O+1;break;default:b===o.slash&&l.charCodeAt(W+1)===o.asterisk?(0===(O=l.indexOf("*/",W+2)+1)&&m("comment","*/"),(c=(n=l.slice(W,O+1).split("\n")).length-1)>0?(i=f+c,a=O-n[c].length):(i=f,a=u),s=o.comment,f=i,p=i,M=O-a):b===o.slash?(s=b,p=f,M=W-u,h=(O=W)+1):(O=r(l,W),s=o.word,p=f,M=O-u),h=O+1}d.push([s,f,W-u,p,M,W,h]),a&&(u=a,a=null),W=h}return d};var b,M,o=function(e,b){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var M=p(b);if(M&&M.has(e))return M.get(e);var o={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var t in e)if("default"!==t&&Object.prototype.hasOwnProperty.call(e,t)){var c=z?Object.getOwnPropertyDescriptor(e,t):null;c&&(c.get||c.set)?Object.defineProperty(o,t,c):o[t]=e[t]}return o.default=e,M&&M.set(e,o),o}(TM());function p(e){if("function"!=typeof WeakMap)return null;var b=new WeakMap,M=new WeakMap;return(p=function(e){return e?M:b})(e)}for(var z=((b={})[o.tab]=!0,b[o.newline]=!0,b[o.cr]=!0,b[o.feed]=!0,b),t=((M={})[o.space]=!0,M[o.tab]=!0,M[o.newline]=!0,M[o.cr]=!0,M[o.feed]=!0,M[o.ampersand]=!0,M[o.asterisk]=!0,M[o.bang]=!0,M[o.comma]=!0,M[o.colon]=!0,M[o.semicolon]=!0,M[o.openParenthesis]=!0,M[o.closeParenthesis]=!0,M[o.openSquare]=!0,M[o.closeSquare]=!0,M[o.singleQuote]=!0,M[o.doubleQuote]=!0,M[o.plus]=!0,M[o.pipe]=!0,M[o.tilde]=!0,M[o.greaterThan]=!0,M[o.equals]=!0,M[o.dollar]=!0,M[o.caret]=!0,M[o.slash]=!0,M),c={},n="0123456789abcdefABCDEF",O=0;O<22;O++)c[n.charCodeAt(O)]=!0;function r(e,b){var M,p=b;do{if(M=e.charCodeAt(p),t[M])return p-1;M===o.backslash?p=i(e,p)+1:p++}while(p<e.length);return p-1}function i(e,b){var M=b,p=e.charCodeAt(M+1);if(z[p]);else if(c[p]){var t=0;do{M++,t++,p=e.charCodeAt(M+1)}while(c[p]&&t<6);t<6&&p===o.space&&M++}else M++;return M}e.FIELDS={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6}}(XM)),XM)),u=m(TM()),f=m(Ke()),W=je();function h(e){if("function"!=typeof WeakMap)return null;var b=new WeakMap,M=new WeakMap;return(h=function(e){return e?M:b})(e)}function m(e,b){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var M=h(b);if(M&&M.has(e))return M.get(e);var o={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var z in e)if("default"!==z&&Object.prototype.hasOwnProperty.call(e,z)){var t=p?Object.getOwnPropertyDescriptor(e,z):null;t&&(t.get||t.set)?Object.defineProperty(o,z,t):o[z]=e[z]}return o.default=e,M&&M.set(e,o),o}function R(e){return e&&e.__esModule?e:{default:e}}function g(e,b,M){return b&&function(e,b){for(var M=0;M<b.length;M++){var o=b[M];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(e.prototype,b),Object.defineProperty(e,"prototype",{writable:!1}),e}var L=((M={})[u.space]=!0,M[u.cr]=!0,M[u.feed]=!0,M[u.newline]=!0,M[u.tab]=!0,M),v=Object.assign({},L,((o={})[u.comment]=!0,o));function N(e){return{line:e[q.FIELDS.START_LINE],column:e[q.FIELDS.START_COL]}}function y(e){return{line:e[q.FIELDS.END_LINE],column:e[q.FIELDS.END_COL]}}function B(e,b,M,o){return{start:{line:e,column:b},end:{line:M,column:o}}}function x(e){return B(e[q.FIELDS.START_LINE],e[q.FIELDS.START_COL],e[q.FIELDS.END_LINE],e[q.FIELDS.END_COL])}function w(e,b){if(e)return B(e[q.FIELDS.START_LINE],e[q.FIELDS.START_COL],b[q.FIELDS.END_LINE],b[q.FIELDS.END_COL])}function X(e,b){var M=e[b];if("string"==typeof M)return-1!==M.indexOf("\\")&&((0,W.ensureObject)(e,"raws"),e[b]=(0,W.unesc)(M),void 0===e.raws[b]&&(e.raws[b]=M)),e}function k(e,b){for(var M=-1,o=[];-1!==(M=e.indexOf(b,M+1));)o.push(M);return o}var T=function(){function e(e,b){void 0===b&&(b={}),this.rule=e,this.options=Object.assign({lossy:!1,safe:!1},b),this.position=0,this.css="string"==typeof this.rule?this.rule:this.rule.selector,this.tokens=(0,q.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var M=w(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new p.default({source:M}),this.root.errorGenerator=this._errorGenerator();var o=new z.default({source:{start:{line:1,column:1}},sourceIndex:0});this.root.append(o),this.current=o,this.loop()}var b=e.prototype;return b._errorGenerator=function(){var e=this;return function(b,M){return"string"==typeof e.rule?new Error(b):e.rule.error(b,M)}},b.attribute=function(){var e=[],b=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[q.FIELDS.TYPE]!==u.closeSquare;)e.push(this.currToken),this.position++;if(this.currToken[q.FIELDS.TYPE]!==u.closeSquare)return this.expected("closing square bracket",this.currToken[q.FIELDS.START_POS]);var M=e.length,o={source:B(b[1],b[2],this.currToken[3],this.currToken[4]),sourceIndex:b[q.FIELDS.START_POS]};if(1===M&&!~[u.word].indexOf(e[0][q.FIELDS.TYPE]))return this.expected("attribute",e[0][q.FIELDS.START_POS]);for(var p=0,z="",t="",c=null,n=!1;p<M;){var O=e[p],r=this.content(O),i=e[p+1];switch(O[q.FIELDS.TYPE]){case u.space:if(n=!0,this.options.lossy)break;if(c){(0,W.ensureObject)(o,"spaces",c);var A=o.spaces[c].after||"";o.spaces[c].after=A+r;var s=(0,W.getProp)(o,"raws","spaces",c,"after")||null;s&&(o.raws.spaces[c].after=s+r)}else z+=r,t+=r;break;case u.asterisk:if(i[q.FIELDS.TYPE]===u.equals)o.operator=r,c="operator";else if((!o.namespace||"namespace"===c&&!n)&&i){z&&((0,W.ensureObject)(o,"spaces","attribute"),o.spaces.attribute.before=z,z=""),t&&((0,W.ensureObject)(o,"raws","spaces","attribute"),o.raws.spaces.attribute.before=z,t=""),o.namespace=(o.namespace||"")+r,((0,W.getProp)(o,"raws","namespace")||null)&&(o.raws.namespace+=r),c="namespace"}n=!1;break;case u.dollar:if("value"===c){var d=(0,W.getProp)(o,"raws","value");o.value+="$",d&&(o.raws.value=d+"$");break}case u.caret:i[q.FIELDS.TYPE]===u.equals&&(o.operator=r,c="operator"),n=!1;break;case u.combinator:if("~"===r&&i[q.FIELDS.TYPE]===u.equals&&(o.operator=r,c="operator"),"|"!==r){n=!1;break}i[q.FIELDS.TYPE]===u.equals?(o.operator=r,c="operator"):o.namespace||o.attribute||(o.namespace=!0),n=!1;break;case u.word:if(i&&"|"===this.content(i)&&e[p+2]&&e[p+2][q.FIELDS.TYPE]!==u.equals&&!o.operator&&!o.namespace)o.namespace=r,c="namespace";else if(!o.attribute||"attribute"===c&&!n){z&&((0,W.ensureObject)(o,"spaces","attribute"),o.spaces.attribute.before=z,z=""),t&&((0,W.ensureObject)(o,"raws","spaces","attribute"),o.raws.spaces.attribute.before=t,t=""),o.attribute=(o.attribute||"")+r,((0,W.getProp)(o,"raws","attribute")||null)&&(o.raws.attribute+=r),c="attribute"}else if(!o.value&&""!==o.value||"value"===c&&!n&&!o.quoteMark){var l=(0,W.unesc)(r),f=(0,W.getProp)(o,"raws","value")||"",h=o.value||"";o.value=h+l,o.quoteMark=null,(l!==r||f)&&((0,W.ensureObject)(o,"raws"),o.raws.value=(f||h)+r),c="value"}else{var m="i"===r||"I"===r;!o.value&&""!==o.value||!o.quoteMark&&!n?(o.value||""===o.value)&&(c="value",o.value+=r,o.raws.value&&(o.raws.value+=r)):(o.insensitive=m,m&&"I"!==r||((0,W.ensureObject)(o,"raws"),o.raws.insensitiveFlag=r),c="insensitive",z&&((0,W.ensureObject)(o,"spaces","insensitive"),o.spaces.insensitive.before=z,z=""),t&&((0,W.ensureObject)(o,"raws","spaces","insensitive"),o.raws.spaces.insensitive.before=t,t=""))}n=!1;break;case u.str:if(!o.attribute||!o.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:O[q.FIELDS.START_POS]});var R=(0,a.unescapeValue)(r),g=R.unescaped,L=R.quoteMark;o.value=g,o.quoteMark=L,c="value",(0,W.ensureObject)(o,"raws"),o.raws.value=r,n=!1;break;case u.equals:if(!o.attribute)return this.expected("attribute",O[q.FIELDS.START_POS],r);if(o.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:O[q.FIELDS.START_POS]});o.operator=o.operator?o.operator+r:r,c="operator",n=!1;break;case u.comment:if(c)if(n||i&&i[q.FIELDS.TYPE]===u.space||"insensitive"===c){var v=(0,W.getProp)(o,"spaces",c,"after")||"",N=(0,W.getProp)(o,"raws","spaces",c,"after")||v;(0,W.ensureObject)(o,"raws","spaces",c),o.raws.spaces[c].after=N+r}else{var y=o[c]||"",x=(0,W.getProp)(o,"raws",c)||y;(0,W.ensureObject)(o,"raws"),o.raws[c]=x+r}else t+=r;break;default:return this.error('Unexpected "'+r+'" found.',{index:O[q.FIELDS.START_POS]})}p++}X(o,"attribute"),X(o,"namespace"),this.newNode(new a.default(o)),this.position++},b.parseWhitespaceEquivalentTokens=function(e){e<0&&(e=this.tokens.length);var b=this.position,M=[],o="",p=void 0;do{if(L[this.currToken[q.FIELDS.TYPE]])this.options.lossy||(o+=this.content());else if(this.currToken[q.FIELDS.TYPE]===u.comment){var z={};o&&(z.before=o,o=""),p=new c.default({value:this.content(),source:x(this.currToken),sourceIndex:this.currToken[q.FIELDS.START_POS],spaces:z}),M.push(p)}}while(++this.position<e);if(o)if(p)p.spaces.after=o;else if(!this.options.lossy){var t=this.tokens[b],n=this.tokens[this.position-1];M.push(new r.default({value:"",source:B(t[q.FIELDS.START_LINE],t[q.FIELDS.START_COL],n[q.FIELDS.END_LINE],n[q.FIELDS.END_COL]),sourceIndex:t[q.FIELDS.START_POS],spaces:{before:o,after:""}}))}return M},b.convertWhitespaceNodesToSpace=function(e,b){var M=this;void 0===b&&(b=!1);var o="",p="";return e.forEach((function(e){var z=M.lossySpace(e.spaces.before,b),t=M.lossySpace(e.rawSpaceBefore,b);o+=z+M.lossySpace(e.spaces.after,b&&0===z.length),p+=z+e.value+M.lossySpace(e.rawSpaceAfter,b&&0===t.length)})),p===o&&(p=void 0),{space:o,rawSpace:p}},b.isNamedCombinator=function(e){return void 0===e&&(e=this.position),this.tokens[e+0]&&this.tokens[e+0][q.FIELDS.TYPE]===u.slash&&this.tokens[e+1]&&this.tokens[e+1][q.FIELDS.TYPE]===u.word&&this.tokens[e+2]&&this.tokens[e+2][q.FIELDS.TYPE]===u.slash},b.namedCombinator=function(){if(this.isNamedCombinator()){var e=this.content(this.tokens[this.position+1]),b=(0,W.unesc)(e).toLowerCase(),M={};b!==e&&(M.value="/"+e+"/");var o=new s.default({value:"/"+b+"/",source:B(this.currToken[q.FIELDS.START_LINE],this.currToken[q.FIELDS.START_COL],this.tokens[this.position+2][q.FIELDS.END_LINE],this.tokens[this.position+2][q.FIELDS.END_COL]),sourceIndex:this.currToken[q.FIELDS.START_POS],raws:M});return this.position=this.position+3,o}this.unexpected()},b.combinator=function(){var e=this;if("|"===this.content())return this.namespace();var b=this.locateNextMeaningfulToken(this.position);if(!(b<0||this.tokens[b][q.FIELDS.TYPE]===u.comma||this.tokens[b][q.FIELDS.TYPE]===u.closeParenthesis)){var M,o=this.currToken,p=void 0;if(b>this.position&&(p=this.parseWhitespaceEquivalentTokens(b)),this.isNamedCombinator()?M=this.namedCombinator():this.currToken[q.FIELDS.TYPE]===u.combinator?(M=new s.default({value:this.content(),source:x(this.currToken),sourceIndex:this.currToken[q.FIELDS.START_POS]}),this.position++):L[this.currToken[q.FIELDS.TYPE]]||p||this.unexpected(),M){if(p){var z=this.convertWhitespaceNodesToSpace(p),t=z.space,c=z.rawSpace;M.spaces.before=t,M.rawSpaceBefore=c}}else{var n=this.convertWhitespaceNodesToSpace(p,!0),O=n.space,r=n.rawSpace;r||(r=O);var i={},a={spaces:{}};O.endsWith(" ")&&r.endsWith(" ")?(i.before=O.slice(0,O.length-1),a.spaces.before=r.slice(0,r.length-1)):O.startsWith(" ")&&r.startsWith(" ")?(i.after=O.slice(1),a.spaces.after=r.slice(1)):a.value=r,M=new s.default({value:" ",source:w(o,this.tokens[this.position-1]),sourceIndex:o[q.FIELDS.START_POS],spaces:i,raws:a})}return this.currToken&&this.currToken[q.FIELDS.TYPE]===u.space&&(M.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(M)}var A=this.parseWhitespaceEquivalentTokens(b);if(A.length>0){var d=this.current.last;if(d){var l=this.convertWhitespaceNodesToSpace(A),f=l.space,W=l.rawSpace;void 0!==W&&(d.rawSpaceAfter+=W),d.spaces.after+=f}else A.forEach((function(b){return e.newNode(b)}))}},b.comma=function(){if(this.position===this.tokens.length-1)return this.root.trailingComma=!0,void this.position++;this.current._inferEndPosition();var e=new z.default({source:{start:N(this.tokens[this.position+1])},sourceIndex:this.tokens[this.position+1][q.FIELDS.START_POS]});this.current.parent.append(e),this.current=e,this.position++},b.comment=function(){var e=this.currToken;this.newNode(new c.default({value:this.content(),source:x(e),sourceIndex:e[q.FIELDS.START_POS]})),this.position++},b.error=function(e,b){throw this.root.error(e,b)},b.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[q.FIELDS.START_POS]})},b.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[q.FIELDS.START_POS])},b.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[q.FIELDS.START_POS])},b.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[q.FIELDS.START_POS])},b.unexpectedPipe=function(){return this.error("Unexpected '|'.",this.currToken[q.FIELDS.START_POS])},b.namespace=function(){var e=this.prevToken&&this.content(this.prevToken)||!0;return this.nextToken[q.FIELDS.TYPE]===u.word?(this.position++,this.word(e)):this.nextToken[q.FIELDS.TYPE]===u.asterisk?(this.position++,this.universal(e)):void this.unexpectedPipe()},b.nesting=function(){if(this.nextToken&&"|"===this.content(this.nextToken))return void this.position++;var e=this.currToken;this.newNode(new d.default({value:this.content(),source:x(e),sourceIndex:e[q.FIELDS.START_POS]})),this.position++},b.parentheses=function(){var e=this.current.last,b=1;if(this.position++,e&&e.type===f.PSEUDO){var M=new z.default({source:{start:N(this.tokens[this.position])},sourceIndex:this.tokens[this.position][q.FIELDS.START_POS]}),o=this.current;for(e.append(M),this.current=M;this.position<this.tokens.length&&b;)this.currToken[q.FIELDS.TYPE]===u.openParenthesis&&b++,this.currToken[q.FIELDS.TYPE]===u.closeParenthesis&&b--,b?this.parse():(this.current.source.end=y(this.currToken),this.current.parent.source.end=y(this.currToken),this.position++);this.current=o}else{for(var p,t=this.currToken,c="(";this.position<this.tokens.length&&b;)this.currToken[q.FIELDS.TYPE]===u.openParenthesis&&b++,this.currToken[q.FIELDS.TYPE]===u.closeParenthesis&&b--,p=this.currToken,c+=this.parseParenthesisToken(this.currToken),this.position++;e?e.appendToPropertyAndEscape("value",c,c):this.newNode(new r.default({value:c,source:B(t[q.FIELDS.START_LINE],t[q.FIELDS.START_COL],p[q.FIELDS.END_LINE],p[q.FIELDS.END_COL]),sourceIndex:t[q.FIELDS.START_POS]}))}if(b)return this.expected("closing parenthesis",this.currToken[q.FIELDS.START_POS])},b.pseudo=function(){for(var e=this,b="",M=this.currToken;this.currToken&&this.currToken[q.FIELDS.TYPE]===u.colon;)b+=this.content(),this.position++;return this.currToken?this.currToken[q.FIELDS.TYPE]!==u.word?this.expected(["pseudo-class","pseudo-element"],this.currToken[q.FIELDS.START_POS]):void this.splitWord(!1,(function(o,p){b+=o,e.newNode(new i.default({value:b,source:w(M,e.currToken),sourceIndex:M[q.FIELDS.START_POS]})),p>1&&e.nextToken&&e.nextToken[q.FIELDS.TYPE]===u.openParenthesis&&e.error("Misplaced parenthesis.",{index:e.nextToken[q.FIELDS.START_POS]})})):this.expected(["pseudo-class","pseudo-element"],this.position-1)},b.space=function(){var e=this.content();0===this.position||this.prevToken[q.FIELDS.TYPE]===u.comma||this.prevToken[q.FIELDS.TYPE]===u.openParenthesis||this.current.nodes.every((function(e){return"comment"===e.type}))?(this.spaces=this.optionalSpace(e),this.position++):this.position===this.tokens.length-1||this.nextToken[q.FIELDS.TYPE]===u.comma||this.nextToken[q.FIELDS.TYPE]===u.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(e),this.position++):this.combinator()},b.string=function(){var e=this.currToken;this.newNode(new r.default({value:this.content(),source:x(e),sourceIndex:e[q.FIELDS.START_POS]})),this.position++},b.universal=function(e){var b=this.nextToken;if(b&&"|"===this.content(b))return this.position++,this.namespace();var M=this.currToken;this.newNode(new A.default({value:this.content(),source:x(M),sourceIndex:M[q.FIELDS.START_POS]}),e),this.position++},b.splitWord=function(e,b){for(var M=this,o=this.nextToken,p=this.content();o&&~[u.dollar,u.caret,u.equals,u.word].indexOf(o[q.FIELDS.TYPE]);){this.position++;var z=this.content();if(p+=z,z.lastIndexOf("\\")===z.length-1){var c=this.nextToken;c&&c[q.FIELDS.TYPE]===u.space&&(p+=this.requiredSpace(this.content(c)),this.position++)}o=this.nextToken}var r=k(p,".").filter((function(e){var b="\\"===p[e-1],M=/^\d+\.\d+%$/.test(p);return!b&&!M})),i=k(p,"#").filter((function(e){return"\\"!==p[e-1]})),a=k(p,"#{");a.length&&(i=i.filter((function(e){return!~a.indexOf(e)})));var A=(0,l.default)(function(){var e=Array.prototype.concat.apply([],arguments);return e.filter((function(b,M){return M===e.indexOf(b)}))}([0].concat(r,i)));A.forEach((function(o,z){var c,a=A[z+1]||p.length,s=p.slice(o,a);if(0===z&&b)return b.call(M,s,A.length);var d=M.currToken,l=d[q.FIELDS.START_POS]+A[z],u=B(d[1],d[2]+o,d[3],d[2]+(a-1));if(~r.indexOf(o)){var f={value:s.slice(1),source:u,sourceIndex:l};c=new t.default(X(f,"value"))}else if(~i.indexOf(o)){var W={value:s.slice(1),source:u,sourceIndex:l};c=new n.default(X(W,"value"))}else{var h={value:s,source:u,sourceIndex:l};X(h,"value"),c=new O.default(h)}M.newNode(c,e),e=null})),this.position++},b.word=function(e){var b=this.nextToken;return b&&"|"===this.content(b)?(this.position++,this.namespace()):this.splitWord(e)},b.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},b.parse=function(e){switch(this.currToken[q.FIELDS.TYPE]){case u.space:this.space();break;case u.comment:this.comment();break;case u.openParenthesis:this.parentheses();break;case u.closeParenthesis:e&&this.missingParenthesis();break;case u.openSquare:this.attribute();break;case u.dollar:case u.caret:case u.equals:case u.word:this.word();break;case u.colon:this.pseudo();break;case u.comma:this.comma();break;case u.asterisk:this.universal();break;case u.ampersand:this.nesting();break;case u.slash:case u.combinator:this.combinator();break;case u.str:this.string();break;case u.closeSquare:this.missingSquareBracket();case u.semicolon:this.missingBackslash();default:this.unexpected()}},b.expected=function(e,b,M){if(Array.isArray(e)){var o=e.pop();e=e.join(", ")+" or "+o}var p=/^[aeiou]/.test(e[0])?"an":"a";return M?this.error("Expected "+p+" "+e+', found "'+M+'" instead.',{index:b}):this.error("Expected "+p+" "+e+".",{index:b})},b.requiredSpace=function(e){return this.options.lossy?" ":e},b.optionalSpace=function(e){return this.options.lossy?"":e},b.lossySpace=function(e,b){return this.options.lossy?b?" ":"":e},b.parseParenthesisToken=function(e){var b=this.content(e);return e[q.FIELDS.TYPE]===u.space?this.requiredSpace(b):b},b.newNode=function(e,b){return b&&(/^ +$/.test(b)&&(this.options.lossy||(this.spaces=(this.spaces||"")+b),b=!0),e.namespace=b,X(e,"namespace")),this.spaces&&(e.spaces.before=this.spaces,this.spaces=""),this.current.append(e)},b.content=function(e){return void 0===e&&(e=this.currToken),this.css.slice(e[q.FIELDS.START_POS],e[q.FIELDS.END_POS])},b.locateNextMeaningfulToken=function(e){void 0===e&&(e=this.position+1);for(var b=e;b<this.tokens.length;){if(!v[this.tokens[b][q.FIELDS.TYPE]])return b;b++}return-1},g(e,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),e}();b.default=T,e.exports=b.default}(Be,Be.exports)),Be.exports}var _M,EM={},CM={};var DM,PM,IM,FM,$M,jM,VM,UM,HM,YM,GM,KM,QM,JM={};function ZM(){return PM||(PM=1,function(e){e.__esModule=!0;var b=Ke();Object.keys(b).forEach((function(M){"default"!==M&&"__esModule"!==M&&(M in e&&e[M]===b[M]||(e[M]=b[M]))}));var M=function(){if(_M)return CM;_M=1,CM.__esModule=!0,CM.universal=CM.tag=CM.string=CM.selector=CM.root=CM.pseudo=CM.nesting=CM.id=CM.comment=CM.combinator=CM.className=CM.attribute=void 0;var e=a(lM()),b=a(cb()),M=a(mM()),o=a(rb()),p=a(Ab()),z=a(LM()),t=a(Lb()),c=a(Je()),n=a(bb()),O=a(mb()),r=a(fb()),i=a(fM());function a(e){return e&&e.__esModule?e:{default:e}}return CM.attribute=function(b){return new e.default(b)},CM.className=function(e){return new b.default(e)},CM.combinator=function(e){return new M.default(e)},CM.comment=function(e){return new o.default(e)},CM.id=function(e){return new p.default(e)},CM.nesting=function(e){return new z.default(e)},CM.pseudo=function(e){return new t.default(e)},CM.root=function(e){return new c.default(e)},CM.selector=function(e){return new n.default(e)},CM.string=function(e){return new O.default(e)},CM.tag=function(e){return new r.default(e)},CM.universal=function(e){return new i.default(e)},CM}();Object.keys(M).forEach((function(b){"default"!==b&&"__esModule"!==b&&(b in e&&e[b]===M[b]||(e[b]=M[b]))}));var o=function(){if(DM)return JM;DM=1,JM.__esModule=!0,JM.isComment=JM.isCombinator=JM.isClassName=JM.isAttribute=void 0,JM.isContainer=function(e){return!(!o(e)||!e.walk)},JM.isIdentifier=void 0,JM.isNamespace=function(e){return z(e)||d(e)},JM.isNesting=void 0,JM.isNode=o,JM.isPseudo=void 0,JM.isPseudoClass=function(e){return i(e)&&!q(e)},JM.isPseudoElement=q,JM.isUniversal=JM.isTag=JM.isString=JM.isSelector=JM.isRoot=void 0;var e,b=Ke(),M=((e={})[b.ATTRIBUTE]=!0,e[b.CLASS]=!0,e[b.COMBINATOR]=!0,e[b.COMMENT]=!0,e[b.ID]=!0,e[b.NESTING]=!0,e[b.PSEUDO]=!0,e[b.ROOT]=!0,e[b.SELECTOR]=!0,e[b.STRING]=!0,e[b.TAG]=!0,e[b.UNIVERSAL]=!0,e);function o(e){return"object"==typeof e&&M[e.type]}function p(e,b){return o(b)&&b.type===e}var z=p.bind(null,b.ATTRIBUTE);JM.isAttribute=z;var t=p.bind(null,b.CLASS);JM.isClassName=t;var c=p.bind(null,b.COMBINATOR);JM.isCombinator=c;var n=p.bind(null,b.COMMENT);JM.isComment=n;var O=p.bind(null,b.ID);JM.isIdentifier=O;var r=p.bind(null,b.NESTING);JM.isNesting=r;var i=p.bind(null,b.PSEUDO);JM.isPseudo=i;var a=p.bind(null,b.ROOT);JM.isRoot=a;var A=p.bind(null,b.SELECTOR);JM.isSelector=A;var s=p.bind(null,b.STRING);JM.isString=s;var d=p.bind(null,b.TAG);JM.isTag=d;var l=p.bind(null,b.UNIVERSAL);function q(e){return i(e)&&e.value&&(e.value.startsWith("::")||":before"===e.value.toLowerCase()||":after"===e.value.toLowerCase()||":first-letter"===e.value.toLowerCase()||":first-line"===e.value.toLowerCase())}return JM.isUniversal=l,JM}();Object.keys(o).forEach((function(b){"default"!==b&&"__esModule"!==b&&(b in e&&e[b]===o[b]||(e[b]=o[b]))}))}(EM)),EM}function eo(){return IM||(IM=1,function(e,b){b.__esModule=!0,b.default=void 0;var M,o=(wM||(wM=1,function(e,b){b.__esModule=!0,b.default=void 0;var M,o=(M=SM())&&M.__esModule?M:{default:M},p=function(){function e(e,b){this.func=e||function(){},this.funcRes=null,this.options=b}var b=e.prototype;return b._shouldUpdateSelector=function(e,b){return void 0===b&&(b={}),!1!==Object.assign({},this.options,b).updateSelector&&"string"!=typeof e},b._isLossy=function(e){return void 0===e&&(e={}),!1===Object.assign({},this.options,e).lossless},b._root=function(e,b){return void 0===b&&(b={}),new o.default(e,this._parseOptions(b)).root},b._parseOptions=function(e){return{lossy:this._isLossy(e)}},b._run=function(e,b){var M=this;return void 0===b&&(b={}),new Promise((function(o,p){try{var z=M._root(e,b);Promise.resolve(M.func(z)).then((function(o){var p=void 0;return M._shouldUpdateSelector(e,b)&&(p=z.toString(),e.selector=p),{transform:o,root:z,string:p}})).then(o,p)}catch(e){return void p(e)}}))},b._runSync=function(e,b){void 0===b&&(b={});var M=this._root(e,b),o=this.func(M);if(o&&"function"==typeof o.then)throw new Error("Selector processor returned a promise to a synchronous call.");var p=void 0;return b.updateSelector&&"string"!=typeof e&&(p=M.toString(),e.selector=p),{transform:o,root:M,string:p}},b.ast=function(e,b){return this._run(e,b).then((function(e){return e.root}))},b.astSync=function(e,b){return this._runSync(e,b).root},b.transform=function(e,b){return this._run(e,b).then((function(e){return e.transform}))},b.transformSync=function(e,b){return this._runSync(e,b).transform},b.process=function(e,b){return this._run(e,b).then((function(e){return e.string||e.root.toString()}))},b.processSync=function(e,b){var M=this._runSync(e,b);return M.string||M.root.toString()},e}();b.default=p,e.exports=b.default}(ye,ye.exports)),(M=ye.exports)&&M.__esModule?M:{default:M}),p=function(e,b){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var M=z(b);if(M&&M.has(e))return M.get(e);var o={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var t in e)if("default"!==t&&Object.prototype.hasOwnProperty.call(e,t)){var c=p?Object.getOwnPropertyDescriptor(e,t):null;c&&(c.get||c.set)?Object.defineProperty(o,t,c):o[t]=e[t]}o.default=e,M&&M.set(e,o);return o}(ZM());function z(e){if("function"!=typeof WeakMap)return null;var b=new WeakMap,M=new WeakMap;return(z=function(e){return e?M:b})(e)}var t=function(e){return new o.default(e)};Object.assign(t,p),delete t.__esModule;var c=t;b.default=c,e.exports=b.default}(Ne,Ne.exports)),Ne.exports}function bo(){if(GM)return YM;GM=1;var e="-".charCodeAt(0),b="+".charCodeAt(0),M=".".charCodeAt(0),o="e".charCodeAt(0),p="E".charCodeAt(0);return YM=function(z){var t,c,n,O=0,r=z.length;if(0===r||!function(o){var p,z=o.charCodeAt(0);if(z===b||z===e){if((p=o.charCodeAt(1))>=48&&p<=57)return!0;var t=o.charCodeAt(2);return p===M&&t>=48&&t<=57}return z===M?(p=o.charCodeAt(1))>=48&&p<=57:z>=48&&z<=57}(z))return!1;for((t=z.charCodeAt(O))!==b&&t!==e||O++;O<r&&!((t=z.charCodeAt(O))<48||t>57);)O+=1;if(t=z.charCodeAt(O),c=z.charCodeAt(O+1),t===M&&c>=48&&c<=57)for(O+=2;O<r&&!((t=z.charCodeAt(O))<48||t>57);)O+=1;if(t=z.charCodeAt(O),c=z.charCodeAt(O+1),n=z.charCodeAt(O+2),(t===o||t===p)&&(c>=48&&c<=57||(c===b||c===e)&&n>=48&&n<=57))for(O+=c===b||c===e?3:2;O<r&&!((t=z.charCodeAt(O))<48||t>57);)O+=1;return{number:z.slice(0,O),unit:z.slice(O)}},YM}function Mo(){if(QM)return KM;QM=1;var e=function(){if($M)return FM;$M=1;var e="(".charCodeAt(0),b=")".charCodeAt(0),M="'".charCodeAt(0),o='"'.charCodeAt(0),p="\\".charCodeAt(0),z="/".charCodeAt(0),t=",".charCodeAt(0),c=":".charCodeAt(0),n="*".charCodeAt(0),O="u".charCodeAt(0),r="U".charCodeAt(0),i="+".charCodeAt(0),a=/^[a-f0-9?-]+$/i;return FM=function(A){for(var s,d,l,q,u,f,W,h,m,R=[],g=A,L=0,v=g.charCodeAt(L),N=g.length,y=[{nodes:R}],B=0,x="",w="",X="";L<N;)if(v<=32){s=L;do{s+=1,v=g.charCodeAt(s)}while(v<=32);q=g.slice(L,s),l=R[R.length-1],v===b&&B?X=q:l&&"div"===l.type?(l.after=q,l.sourceEndIndex+=q.length):v===t||v===c||v===z&&g.charCodeAt(s+1)!==n&&(!m||m&&"function"===m.type&&"calc"!==m.value)?w=q:R.push({type:"space",sourceIndex:L,sourceEndIndex:s,value:q}),L=s}else if(v===M||v===o){s=L,q={type:"string",sourceIndex:L,quote:d=v===M?"'":'"'};do{if(u=!1,~(s=g.indexOf(d,s+1)))for(f=s;g.charCodeAt(f-1)===p;)f-=1,u=!u;else s=(g+=d).length-1,q.unclosed=!0}while(u);q.value=g.slice(L+1,s),q.sourceEndIndex=q.unclosed?s:s+1,R.push(q),L=s+1,v=g.charCodeAt(L)}else if(v===z&&g.charCodeAt(L+1)===n)q={type:"comment",sourceIndex:L,sourceEndIndex:(s=g.indexOf("*/",L))+2},-1===s&&(q.unclosed=!0,s=g.length,q.sourceEndIndex=s),q.value=g.slice(L+2,s),R.push(q),L=s+2,v=g.charCodeAt(L);else if(v!==z&&v!==n||!m||"function"!==m.type||"calc"!==m.value)if(v===z||v===t||v===c)q=g[L],R.push({type:"div",sourceIndex:L-w.length,sourceEndIndex:L+q.length,value:q,before:w,after:""}),w="",L+=1,v=g.charCodeAt(L);else if(e===v){s=L;do{s+=1,v=g.charCodeAt(s)}while(v<=32);if(h=L,q={type:"function",sourceIndex:L-x.length,value:x,before:g.slice(h+1,s)},L=s,"url"===x&&v!==M&&v!==o){s-=1;do{if(u=!1,~(s=g.indexOf(")",s+1)))for(f=s;g.charCodeAt(f-1)===p;)f-=1,u=!u;else s=(g+=")").length-1,q.unclosed=!0}while(u);W=s;do{W-=1,v=g.charCodeAt(W)}while(v<=32);h<W?(q.nodes=L!==W+1?[{type:"word",sourceIndex:L,sourceEndIndex:W+1,value:g.slice(L,W+1)}]:[],q.unclosed&&W+1!==s?(q.after="",q.nodes.push({type:"space",sourceIndex:W+1,sourceEndIndex:s,value:g.slice(W+1,s)})):(q.after=g.slice(W+1,s),q.sourceEndIndex=s)):(q.after="",q.nodes=[]),L=s+1,q.sourceEndIndex=q.unclosed?s:L,v=g.charCodeAt(L),R.push(q)}else B+=1,q.after="",q.sourceEndIndex=L+1,R.push(q),y.push(q),R=q.nodes=[],m=q;x=""}else if(b===v&&B)L+=1,v=g.charCodeAt(L),m.after=X,m.sourceEndIndex+=X.length,X="",B-=1,y[y.length-1].sourceEndIndex=L,y.pop(),R=(m=y[B]).nodes;else{s=L;do{v===p&&(s+=1),s+=1,v=g.charCodeAt(s)}while(s<N&&!(v<=32||v===M||v===o||v===t||v===c||v===z||v===e||v===n&&m&&"function"===m.type&&"calc"===m.value||v===z&&"function"===m.type&&"calc"===m.value||v===b&&B));q=g.slice(L,s),e===v?x=q:O!==q.charCodeAt(0)&&r!==q.charCodeAt(0)||i!==q.charCodeAt(1)||!a.test(q.slice(2))?R.push({type:"word",sourceIndex:L,sourceEndIndex:s,value:q}):R.push({type:"unicode-range",sourceIndex:L,sourceEndIndex:s,value:q}),L=s}else q=g[L],R.push({type:"word",sourceIndex:L-w.length,sourceEndIndex:L+q.length,value:q}),L+=1,v=g.charCodeAt(L);for(L=y.length-1;L;L-=1)y[L].unclosed=!0,y[L].sourceEndIndex=g.length;return y[0].nodes},FM}(),b=(VM||(VM=1,jM=function e(b,M,o){var p,z,t,c;for(p=0,z=b.length;p<z;p+=1)t=b[p],o||(c=M(t,p,b)),!1!==c&&"function"===t.type&&Array.isArray(t.nodes)&&e(t.nodes,M,o),o&&M(t,p,b)}),jM),M=function(){if(HM)return UM;function e(e,M){var o,p,z=e.type,t=e.value;return M&&void 0!==(p=M(e))?p:"word"===z||"space"===z?t:"string"===z?(o=e.quote||"")+t+(e.unclosed?"":o):"comment"===z?"/*"+t+(e.unclosed?"":"*/"):"div"===z?(e.before||"")+t+(e.after||""):Array.isArray(e.nodes)?(o=b(e.nodes,M),"function"!==z?o:t+"("+(e.before||"")+o+(e.after||"")+(e.unclosed?"":")")):t}function b(b,M){var o,p;if(Array.isArray(b)){for(o="",p=b.length-1;~p;p-=1)o=e(b[p],M)+o;return o}return e(b,M)}return HM=1,UM=b}();function o(b){return this instanceof o?(this.nodes=e(b),this):new o(b)}return o.prototype.toString=function(){return Array.isArray(this.nodes)?M(this.nodes):""},o.prototype.walk=function(e,M){return b(this.nodes,e,M),this},o.unit=bo(),o.walk=b,o.stringify=M,KM=o}function oo(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var po,zo,to,co,no,Oo,ro,io,ao,Ao,so,lo={};function qo(){return po||(po=1,function(e){var b=function(){function e(e,b){var M;if(Object.defineProperty(this,"name",{enumerable:!1,writable:!1,value:"JisonParserError"}),null==e&&(e="???"),Object.defineProperty(this,"message",{enumerable:!1,writable:!0,value:e}),this.hash=b,b&&b.exception instanceof Error){var o=b.exception;this.message=o.message||e,M=o.stack}M||(Error.hasOwnProperty("captureStackTrace")?Error.captureStackTrace(this,this.constructor):M=new Error(e).stack),M&&Object.defineProperty(this,"stack",{enumerable:!1,writable:!1,value:M})}function b(e,b,M){M=M||0;for(var o=0;o<b;o++)this.push(e),e+=M}function M(e,b){for(b+=e=this.length-e;e<b;e++)this.push(this[e])}function o(e){for(var b=[],M=0,o=e.length;M<o;M++){var p=e[M];"function"==typeof p?(M++,p.apply(b,e[M])):b.push(p)}return b}"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,Error.prototype):e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e.prototype.name="JisonParserError";var p={trace:function(){},JisonParserError:e,yy:{},options:{type:"lalr",hasPartialLrUpgradeOnConflict:!0,errorRecoveryTokenDiscardCount:3},symbols_:{$accept:0,$end:1,ADD:6,ANGLE:12,CALC:3,CALC_KEYWORD:54,CHS:19,CQBS:48,CQHS:46,CQIS:47,CQMAXS:50,CQMINS:49,CQWS:45,DIV:9,DVBS:40,DVHS:24,DVIS:44,DVMAXS:36,DVMINS:32,DVWS:28,EMS:17,EOF:1,EXS:18,FREQ:14,FUNCTION:10,LENGTH:11,LHS:51,LPAREN:4,LVBS:39,LVHS:23,LVIS:43,LVMAXS:35,LVMINS:31,LVWS:27,MUL:8,NUMBER:55,PERCENTAGE:53,REMS:20,RES:15,RLHS:52,RPAREN:5,SUB:7,SVBS:38,SVHS:22,SVIS:42,SVMAXS:34,SVMINS:30,SVWS:26,TIME:13,UNKNOWN_DIMENSION:16,VBS:37,VHS:21,VIS:41,VMAXS:33,VMINS:29,VWS:25,calc_keyword:60,dimension:59,error:2,expression:56,function:58,math_expression:57,number:61},terminals_:{1:"EOF",2:"error",3:"CALC",4:"LPAREN",5:"RPAREN",6:"ADD",7:"SUB",8:"MUL",9:"DIV",10:"FUNCTION",11:"LENGTH",12:"ANGLE",13:"TIME",14:"FREQ",15:"RES",16:"UNKNOWN_DIMENSION",17:"EMS",18:"EXS",19:"CHS",20:"REMS",21:"VHS",22:"SVHS",23:"LVHS",24:"DVHS",25:"VWS",26:"SVWS",27:"LVWS",28:"DVWS",29:"VMINS",30:"SVMINS",31:"LVMINS",32:"DVMINS",33:"VMAXS",34:"SVMAXS",35:"LVMAXS",36:"DVMAXS",37:"VBS",38:"SVBS",39:"LVBS",40:"DVBS",41:"VIS",42:"SVIS",43:"LVIS",44:"DVIS",45:"CQWS",46:"CQHS",47:"CQIS",48:"CQBS",49:"CQMINS",50:"CQMAXS",51:"LHS",52:"RLHS",53:"PERCENTAGE",54:"CALC_KEYWORD",55:"NUMBER"},TERROR:2,EOF:1,originalQuoteName:null,originalParseError:null,cleanupAfterParse:null,constructParseErrorInfo:null,yyMergeLocationInfo:null,__reentrant_call_depth:0,__error_infos:[],__error_recovery_infos:[],quoteName:function(e){return'"'+e+'"'},getSymbolName:function(e){if(this.terminals_[e])return this.terminals_[e];var b=this.symbols_;for(var M in b)if(b[M]===e)return M;return null},describeSymbol:function(e){if(e!==this.EOF&&this.terminal_descriptions_&&this.terminal_descriptions_[e])return this.terminal_descriptions_[e];if(e===this.EOF)return"end of input";var b=this.getSymbolName(e);return b?this.quoteName(b):null},collect_expected_token_set:function(e,b){var M=this.TERROR,o=[],p={};if(!b&&this.state_descriptions_&&this.state_descriptions_[e])return[this.state_descriptions_[e]];for(var z in this.table[e])if((z=+z)!==M){var t=b?z:this.describeSymbol(z);t&&!p[t]&&(o.push(t),p[t]=!0)}return o},productions_:function(e){for(var b=[],M=e.pop,o=e.rule,p=0,z=M.length;p<z;p++)b.push([M[p],o[p]]);return b}({pop:o([56,b,[57,10],58,b,[59,45],60,b,[61,3]]),rule:o([2,4,b,[3,5],b,[1,48],2,2,M,[4,4]])}),performAction:function(e,b,M){var o=this.yy;switch(o.parser,o.lexer,e){case 0:case 2:
|
|
3
3
|
/*! Production:: math_expression : CALC LPAREN math_expression RPAREN */
|
|
4
4
|
this.$=M[b-1];break;case 1:
|
|
@@ -3317,7 +3317,7 @@ function kA(e,b){if(YA(e))for(let M=0;M<e.length&&!1!==b(e[M],M,e);M++);else e&&
|
|
|
3317
3317
|
margin-top: 10px;
|
|
3318
3318
|
gap: 5px;
|
|
3319
3319
|
|
|
3320
|
-
`;const vq=new RegExp(/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+([.])[a-zA-Z0-9-]+(?:.[a-zA-Z0-9-]+)*$/),Nq=new RegExp(/^[a-zA-Z0-9_.-]{6,}$/),yq=new RegExp(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*()_+={};:<>|./?,"'\[\]\\`~\-])[a-zA-Z\d$begin:math:display$$end:math:display$\\`~!@#$%^&*()_+={};:<>|.\/?,"'-]{8,60}$/),Bq=new RegExp(/^[a-z0-9._-]{3,15}$/),xq=new RegExp(/^[a-z0-9]{3,30}$/);const wq=e=>yq.test(e),Xq=e=>vq.test(e),kq=e=>Nq.test(e),Tq=(e,b)=>e.length>=b,Sq=(e,b)=>e.length<=b,_q=(e,b)=>e===b,Eq=(e,b)=>e!==b,Cq=(e,b)=>e.length===b,Dq=e=>Bq.test(e),Pq=e=>xq.test(e),Iq=e=>function(e){var b,M=0,o=0,p=0;if(11!=e.length)return!1;if(!/^-?\d+$/.test(e))return!1;if(0==Number(e[0]))return!1;if(M=parseInt(e[0])+parseInt(e[2])+parseInt(e[4])+parseInt(e[6])+parseInt(e[8]),b=parseInt(e[1])+parseInt(e[3])+parseInt(e[5])+parseInt(e[7]),M*=7,Math.abs(M-b)%10!=Number(e[9]))return!1;for(p=0;p<10;p++)o+=parseInt(e[p]);return o%10==Number(e[10])}(e),Fq=e=>{if(Array.isArray(e)){if(0===e.length)return!1}else{if("object"==typeof e){let b=!0;return Object.keys(e).forEach((M=>{""===e[M]&&(b=!1)})),b}if("string"==typeof e){if(""===e)return!1}else if("boolean"==typeof e&&!1===e)return!1}return!0},$q=q({});$q.displayName="ITDFormContext";const jq=W((({name:e="",label:M="",placeholder:o="",error:p="",rules:z=[],mask:t=null,locked:c=!1,dependency:a="",reset:A=[],query:s="",children:d=null},q)=>{const{t:u}=b("itd"),f=r(null),{register:W,unregister:m,hasField:R,updateField:g,setFieldError:L,getFieldValue:v,getFieldInstance:N,formId:y}=i($q),[B,x]=n(!1);O((()=>(W({name:e,field:f,valid:X(f.current?.getValue()),query:s,reset:A,error:p}),x(!0),()=>{x(!1),m(e)})),[]),h(q,(()=>f.current));const w=(b,M=!0,o=!0)=>{B&&R(e)&&(g(e,b,M,X(b,o)),k())},X=(b,M=!0)=>{const o=function(e,b,M,o){let p=[];return e.forEach((e=>{e.hasOwnProperty(F.REQUIRED)&&!Fq(b)&&e.required&&p.push(e.message?e.message:o("errors.required")),e.hasOwnProperty(F.TYPE)&&(e.type===$.MIN_LENGTH&&(Tq(String(b),Number(e.value))||p.push(e.message?e.message:o("errors.minLength",{length:Number(e.value)}))),e.type===$.MAX_LENGTH&&(Sq(String(b),Number(e.value))||p.push(e.message?e.message:o("errors.maxLength",{length:Number(e.value)}))),e.type===$.EXACT_LENGTH&&(Cq(String(b),Number(e.value))||p.push(e.message?e.message:o("errors.exactLength",{length:Number(e.value)}))),e.type===$.SAME&&(_q(String(b),String(M(String(e.field))))||p.push(e.message?e.message:o("errors.fieldMustBeTheSame",{fields:e.field}))),e.type===$.NOT_SAME&&(Eq(String(b),String(M(String(e.field))))||p.push(e.message?e.message:o("errors.fieldMustBeDifferent",{fields:e.field}))),e.type===$.TC_IDENTITY&&(Iq(String(b))||p.push(e.message?e.message:o("errors.wrongTCIdentity"))),e.type===$.PASSWORD&&(wq(String(b))||p.push(e.message?e.message:o("errors.passwordRule"))),e.type===$.EMAIL&&(Xq(String(b))||p.push(e.message?e.message:o("errors.invalidEmailAddress"))),e.type===$.USERNAME&&(kq(String(b))||p.push(e.message?e.message:o("errors.usernameRule"))),e.type===$.SITE_USERNAME&&(Dq(String(b))||p.push(e.message?e.message:o("errors.siteUsernameRule"))),e.type===$.ADMIN_USERNAME&&(Pq(String(b))||p.push(e.message?e.message:o("errors.adminUsernameRule"))))})),p}(z,b,v,u);return o.length>0?(L(e,o[0],M),!1):(L(e,""),!0)},k=()=>{if(""===a)return;if(""===v(a))return;const e=N(a);e&&e.forceUpdate&&e.forceUpdate()};return(()=>{if(!d)return null;let b=d.props;const p={id:b.id?b.id:y+"_"+e,label:M,placeholder:o,className:b.className?b.className+" itd-form-item":"itd-form-item",onUpdate:w,ref:f};return t&&(p.mask=t),c&&(p.locked=c),l(d,{...b,...p})})()})),Vq=W((({name:e="",className:b="",initialValues:M={},useQueryString:p=!1,onUpdate:z,onFinish:t,onFinishFailed:c,onValidated:r,children:a},A)=>{const{updated:s,setInitialValues:d,isFormValid:l,getValues:q,getFields:u,setFieldValueByName:f,resetFields:W}=i($q),m=np(),{search:R}=_(),g=Op(),[L,v]=n([]),[N,y]=n(!1),[B,x]=n([]),[w,X]=n(!1),[k,T]=n(!1);O((()=>{a&&$()}),[a]),O((()=>{S(),E()}),[w]),O((()=>{w||0!==Object.keys(u()).length&&0!==B.length&&Object.keys(u()).length===B.length&&X(!0)}),[u(),B]),O((()=>{E()}),[M]),O((()=>{S()}),[R]),O((()=>{k&&w&&p&&Object.keys(s).length>0&&I(s)}),[s]),O((()=>{r&&l()!==N&&r(l()),y(l())}),[l()]);const S=()=>{w&&p&&(F(),k||P())},E=()=>{w&&(p||k||D())},D=()=>{const e=!Object.values(M).some((e=>null!==e&&""!==e));e&&!k&&T(!0),e||k||(d(M,!1),T(!0))},P=()=>{const e=u(),b=!Object.values(e).some((e=>""!==m.get(e.query,"")));if(Object.values(e).some((e=>null===e.query||""===e.query))){let b=[];throw Object.keys(e).forEach((M=>{e[M].hasOwnProperty("query")&&null!==e[M].query&&""!==e[M].query||b.push(M)})),new Error(`ITD Form Initial Fields Error: "useQueryString" is activated but "query" value is not passed to whole form elements! Invalid fields are ${b.toString()}`)}if(b&&!k&&T(!0),!b&&!k){let b={};Object.keys(e).forEach((M=>{b[M]=m.get(e[M].query,"")})),d(b,!0,!0),T(!0)}},I=e=>{let b=[],M=[];const o=u();Object.keys(e).forEach((b=>{M.push(e[b])})),Qa(M,L)||(Object.keys(o).forEach((M=>{b.push({type:o[M].query,value:e[M]})})),g.set(b))},F=()=>{let e=[],b=[];const M=u();if(Object.keys(M).forEach((b=>{let o=String(m.get(M[b].query,""));e.push(o)})),Qa(e,L))return;v(e),Object.keys(M).forEach((e=>{b[e]=m.get(M[e].query,"")})),Object.keys(b).forEach((e=>{f(e,b[e],!1,!1)}));let o={};Object.keys(b).forEach((e=>{o[e]=b[e]})),z&&z(o)},$=()=>{let e=[];C(a,(b=>(b.hasOwnProperty("type")&&b.type===jq&&e.push({[b.props.name]:b}),!0))),x(e)};return h(A,(()=>({fieldUpdate(e){console.log("fieldUpdate"),console.log(e)}}))),o("form",{id:e,onSubmit:e=>{e&&(e.preventDefault(),e.stopPropagation()),l()?t&&t(q()):c&&c(u())},onReset:e=>{e&&(e.preventDefault(),e.stopPropagation());let b=[];Object.keys(u()).map((e=>{b.push({type:e,value:""})})),g.set(b),W(!0,!1)},autoComplete:"off",className:b,noValidate:!0,children:a})}));var Uq=g(Vq);function Hq({name:e="",useQueryString:b=!1,onUpdate:M,onReset:o,onFieldUpdate:p}){const[z,t]=n({}),[c,O]=n(e),[r,i]=n(!1),[a,A]=n({});function s(e){return z.hasOwnProperty(e)&&void 0!==z[e]}function d(){let e={};return Object.keys(z).forEach((b=>{e[b]=f(b)})),e}function l(e,b,M=!0){if(s(e)&&z[e].field.current){if(z[e].valid=!1,z[e].error=b,!z[e].field.current?.hasOwnProperty("setError"))throw new Error(`Reference Error: You must declare the 'setError' function on the field "${e}"`);z[e].field.current?.setError(M?b:"")}}function q(){let e=!0;return Object.keys(z).forEach((b=>{z[b].valid||(e=!1)})),i(e),e}function f(e){if(s(e)){if(z[e].field.current?.hasOwnProperty("getValue"))return z[e].field.current?.getValue();throw new Error(`Reference Error: You must declare the 'getValue' function on the field "${e}"`)}throw new Error(`Form Error: There is no field registered with this name: ${e}`)}function W(e,b,M,o){if(!s(e))throw new Error(`Form Error: There is no field registered with this name: ${e}`);if(!z[e].field.current?.hasOwnProperty("setValue"))throw new Error(`Reference Error: You must declare the 'setValue' function on the field "${e}"`);{let p=f(e),t=!1;t=Array.isArray(p)&&Array.isArray(b)?Qa(p,b):Array.isArray(p)||Array.isArray(b)?p.toString()===b.toString():p===b,t||z[e].field.current?.setValue(b,M,o)}}return{register:function(e){z[e.name]={name:e.name,field:e.field,value:e.field.current?.getValue(),valid:e.valid,query:e.query,reset:e.reset,error:e.error}},unregister:function(e){if(!s(e))throw new Error(`Form Unregister Error: There is no field registered with this name: ${e}`);delete z[e]},checkFormIsValid:q,hasField:s,getValues:d,getFieldValue:function(e){return s(e)?(b=z[e].value)instanceof Object?JSON.stringify(b):b:"";var b},getFieldValueByName:f,getFieldInstance:function(e){return s(e)?z[e].field.current:null},getFields:function(){let e={};return Object.keys(z).forEach((b=>{e[b]=z[b]})),e},getFieldsInstance:function(){let e={};return Object.keys(z).forEach((b=>{e[b]=z[b].field.current})),e},setName:function(e){O(e)},setInitialValues:function(e,o=!0,p=!1){Object.keys(e).forEach((b=>{W(b,e[b],o,p)}));let z={};return Object.keys(e).forEach((b=>{z[b]=e[b]})),o&&(b&&A(z),M&&M(z)),q(),z},setInvalidField:function(e="",b=""){l(e,b),q()},setInvalidFields:function(e=[],b=""){e.forEach((e=>{l(e,b)})),q()},setFieldValue:function(e,b){if(!s(e))throw new Error(`Form Error: There is no field registered with this name: ${e}`);z[e].valid=!1,z[e].field.current?.setValue(b)},setFieldValueByName:W,setFieldError:l,removeFieldError:function(e){if(!s(e))throw new Error(`Form Error: There is no field registered with this name: ${e}`);if(z[e].valid=!0,z[e].error="",!z[e].field.current?.hasOwnProperty("setError"))throw new Error(`Reference Error: You must declare the 'setError' function on the field "${e}"`);z[e].field.current?.setError("")},updateField:function(e,o,t,c){if(!s(e))throw new Error(`Form Update Error: There is no field registered with this name: ${e}`);if(z[e].value=o,z[e].valid=c,t){p&&p({name:e,value:o,valid:c}),z[e].reset.length>0&&z[e].reset.forEach((e=>{z[e].value="",z[e].valid=!1,z[e].field.current?.reset(!1)}));let t={...d(),[e]:o};z[e].reset.length>0&&z[e].reset.forEach((e=>{t[e]=""})),b&&c&&A(t),M&&M(t)}q()},isFormValid:u((()=>r),[r]),isFieldsValid:function(e){let b=!0;return e.forEach((e=>{z[e].valid||(b=!1)})),b},isFieldValid:function(e){return z[e].valid},resetFields:function(e=!1,b=!1){Object.keys(z).forEach((M=>{if(!z[M].field.current?.hasOwnProperty("reset"))throw new Error(`Reference Error: You must declare the 'reset' function on the field "${M}"`);z[M].field.current?.reset(e,b)})),o&&o()},removeFields:function(){t({})},formId:c,updated:a}}const Yq=W((({initialValues:e,children:b,onUpdate:M,onReset:p,onFinish:z,onFinishFailed:t,onFieldUpdate:c,onValidated:n,useQueryString:i,className:a,name:A},s)=>{const d=r(null);O((()=>()=>{d.current=null}),[]),d.current=Hq({name:A,onUpdate:M,onReset:p,onFieldUpdate:c,useQueryString:i}),h(s,(()=>d.current));return o($q.Provider,{value:d.current,children:o(Uq,{initialValues:e,useQueryString:i,onUpdate:M,onFinish:z,onFinishFailed:t,onValidated:n,name:A,className:(()=>{let e="itd-form";return A&&(e+=" "+A),a&&(e+=" "+a),e})(),children:b})})}));Yq.Item=jq,Yq.Group=function({gap:e=15,horizontal:b=!1,className:M,children:p}){const z=()=>{let e="itd-form-group";return M&&(e+=" "+M),e};return o(gq,{className:z(),$gap:e,$horizontal:b,children:p})},Yq.Control=function({position:e="end",className:b,children:M}){const p=()=>{let e="itd-form-control";return b&&(e+=" "+b),e};return o(Lq,{className:p(),$position:e,children:M})},Yq.useForm=()=>i($q),Yq.useFormAPI=()=>{const e=i($q);if(!e)throw new Error("useFormAPI must be used within a FormContext.Provider");return e};const Gq=pc.div`
|
|
3320
|
+
`;const vq=new RegExp(/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+([.])[a-zA-Z0-9-]+(?:.[a-zA-Z0-9-]+)*$/),Nq=new RegExp(/^[a-zA-Z0-9_.-]$/),yq=new RegExp(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*()_+={};:<>|./?,"'\[\]\\`~\-])[a-zA-Z\d$begin:math:display$$end:math:display$\\`~!@#$%^&*()_+={};:<>|.\/?,"'-]{8,60}$/),Bq=new RegExp(/^[a-z0-9._-]$/),xq=new RegExp(/^[a-z0-9]$/);const wq=e=>yq.test(e),Xq=e=>vq.test(e),kq=e=>Nq.test(e),Tq=(e,b)=>e.length>=b,Sq=(e,b)=>e.length<=b,_q=(e,b)=>e===b,Eq=(e,b)=>e!==b,Cq=(e,b)=>e.length===b,Dq=e=>Bq.test(e),Pq=e=>xq.test(e),Iq=e=>function(e){var b,M=0,o=0,p=0;if(11!=e.length)return!1;if(!/^-?\d+$/.test(e))return!1;if(0==Number(e[0]))return!1;if(M=parseInt(e[0])+parseInt(e[2])+parseInt(e[4])+parseInt(e[6])+parseInt(e[8]),b=parseInt(e[1])+parseInt(e[3])+parseInt(e[5])+parseInt(e[7]),M*=7,Math.abs(M-b)%10!=Number(e[9]))return!1;for(p=0;p<10;p++)o+=parseInt(e[p]);return o%10==Number(e[10])}(e),Fq=e=>{if(Array.isArray(e)){if(0===e.length)return!1}else{if("object"==typeof e){let b=!0;return Object.keys(e).forEach((M=>{""===e[M]&&(b=!1)})),b}if("string"==typeof e){if(""===e)return!1}else if("boolean"==typeof e&&!1===e)return!1}return!0},$q=q({});$q.displayName="ITDFormContext";const jq=W((({name:e="",label:M="",placeholder:o="",error:p="",rules:z=[],mask:t=null,locked:c=!1,dependency:a="",reset:A=[],query:s="",children:d=null},q)=>{const{t:u}=b("itd"),f=r(null),{register:W,unregister:m,hasField:R,updateField:g,setFieldError:L,getFieldValue:v,getFieldInstance:N,formId:y}=i($q),[B,x]=n(!1);O((()=>(W({name:e,field:f,valid:X(f.current?.getValue()),query:s,reset:A,error:p}),x(!0),()=>{x(!1),m(e)})),[]),h(q,(()=>f.current));const w=(b,M=!0,o=!0)=>{B&&R(e)&&(g(e,b,M,X(b,o)),k())},X=(b,M=!0)=>{const o=function(e,b,M,o){let p=[];return e.forEach((e=>{e.hasOwnProperty(F.REQUIRED)&&!Fq(b)&&e.required&&p.push(e.message?e.message:o("errors.required")),e.hasOwnProperty(F.TYPE)&&(e.type===$.MIN_LENGTH&&(Tq(String(b),Number(e.value))||p.push(e.message?e.message:o("errors.minLength",{length:Number(e.value)}))),e.type===$.MAX_LENGTH&&(Sq(String(b),Number(e.value))||p.push(e.message?e.message:o("errors.maxLength",{length:Number(e.value)}))),e.type===$.EXACT_LENGTH&&(Cq(String(b),Number(e.value))||p.push(e.message?e.message:o("errors.exactLength",{length:Number(e.value)}))),e.type===$.SAME&&(_q(String(b),String(M(String(e.field))))||p.push(e.message?e.message:o("errors.fieldMustBeTheSame",{fields:e.field}))),e.type===$.NOT_SAME&&(Eq(String(b),String(M(String(e.field))))||p.push(e.message?e.message:o("errors.fieldMustBeDifferent",{fields:e.field}))),e.type===$.TC_IDENTITY&&(Iq(String(b))||p.push(e.message?e.message:o("errors.wrongTCIdentity"))),e.type===$.PASSWORD&&(wq(String(b))||p.push(e.message?e.message:o("errors.passwordRule"))),e.type===$.EMAIL&&(Xq(String(b))||p.push(e.message?e.message:o("errors.invalidEmailAddress"))),e.type===$.USERNAME&&(kq(String(b))||p.push(e.message?e.message:o("errors.usernameRule"))),e.type===$.SITE_USERNAME&&(Dq(String(b))||p.push(e.message?e.message:o("errors.siteUsernameRule"))),e.type===$.ADMIN_USERNAME&&(Pq(String(b))||p.push(e.message?e.message:o("errors.adminUsernameRule"))))})),p}(z,b,v,u);return o.length>0?(L(e,o[0],M),!1):(L(e,""),!0)},k=()=>{if(""===a)return;if(""===v(a))return;const e=N(a);e&&e.forceUpdate&&e.forceUpdate()};return(()=>{if(!d)return null;let b=d.props;const p={id:b.id?b.id:y+"_"+e,label:M,placeholder:o,className:b.className?b.className+" itd-form-item":"itd-form-item",onUpdate:w,ref:f};return t&&(p.mask=t),c&&(p.locked=c),l(d,{...b,...p})})()})),Vq=W((({name:e="",className:b="",initialValues:M={},useQueryString:p=!1,onUpdate:z,onFinish:t,onFinishFailed:c,onValidated:r,children:a},A)=>{const{updated:s,setInitialValues:d,isFormValid:l,getValues:q,getFields:u,setFieldValueByName:f,resetFields:W}=i($q),m=np(),{search:R}=_(),g=Op(),[L,v]=n([]),[N,y]=n(!1),[B,x]=n([]),[w,X]=n(!1),[k,T]=n(!1);O((()=>{a&&$()}),[a]),O((()=>{S(),E()}),[w]),O((()=>{w||0!==Object.keys(u()).length&&0!==B.length&&Object.keys(u()).length===B.length&&X(!0)}),[u(),B]),O((()=>{E()}),[M]),O((()=>{S()}),[R]),O((()=>{k&&w&&p&&Object.keys(s).length>0&&I(s)}),[s]),O((()=>{r&&l()!==N&&r(l()),y(l())}),[l()]);const S=()=>{w&&p&&(F(),k||P())},E=()=>{w&&(p||k||D())},D=()=>{const e=!Object.values(M).some((e=>null!==e&&""!==e));e&&!k&&T(!0),e||k||(d(M,!1),T(!0))},P=()=>{const e=u(),b=!Object.values(e).some((e=>""!==m.get(e.query,"")));if(Object.values(e).some((e=>null===e.query||""===e.query))){let b=[];throw Object.keys(e).forEach((M=>{e[M].hasOwnProperty("query")&&null!==e[M].query&&""!==e[M].query||b.push(M)})),new Error(`ITD Form Initial Fields Error: "useQueryString" is activated but "query" value is not passed to whole form elements! Invalid fields are ${b.toString()}`)}if(b&&!k&&T(!0),!b&&!k){let b={};Object.keys(e).forEach((M=>{b[M]=m.get(e[M].query,"")})),d(b,!0,!0),T(!0)}},I=e=>{let b=[],M=[];const o=u();Object.keys(e).forEach((b=>{M.push(e[b])})),Qa(M,L)||(Object.keys(o).forEach((M=>{b.push({type:o[M].query,value:e[M]})})),g.set(b))},F=()=>{let e=[],b=[];const M=u();if(Object.keys(M).forEach((b=>{let o=String(m.get(M[b].query,""));e.push(o)})),Qa(e,L))return;v(e),Object.keys(M).forEach((e=>{b[e]=m.get(M[e].query,"")})),Object.keys(b).forEach((e=>{f(e,b[e],!1,!1)}));let o={};Object.keys(b).forEach((e=>{o[e]=b[e]})),z&&z(o)},$=()=>{let e=[];C(a,(b=>(b.hasOwnProperty("type")&&b.type===jq&&e.push({[b.props.name]:b}),!0))),x(e)};return h(A,(()=>({fieldUpdate(e){console.log("fieldUpdate"),console.log(e)}}))),o("form",{id:e,onSubmit:e=>{e&&(e.preventDefault(),e.stopPropagation()),l()?t&&t(q()):c&&c(u())},onReset:e=>{e&&(e.preventDefault(),e.stopPropagation());let b=[];Object.keys(u()).map((e=>{b.push({type:e,value:""})})),g.set(b),W(!0,!1)},autoComplete:"off",className:b,noValidate:!0,children:a})}));var Uq=g(Vq);function Hq({name:e="",useQueryString:b=!1,onUpdate:M,onReset:o,onFieldUpdate:p}){const[z,t]=n({}),[c,O]=n(e),[r,i]=n(!1),[a,A]=n({});function s(e){return z.hasOwnProperty(e)&&void 0!==z[e]}function d(){let e={};return Object.keys(z).forEach((b=>{e[b]=f(b)})),e}function l(e,b,M=!0){if(s(e)&&z[e].field.current){if(z[e].valid=!1,z[e].error=b,!z[e].field.current?.hasOwnProperty("setError"))throw new Error(`Reference Error: You must declare the 'setError' function on the field "${e}"`);z[e].field.current?.setError(M?b:"")}}function q(){let e=!0;return Object.keys(z).forEach((b=>{z[b].valid||(e=!1)})),i(e),e}function f(e){if(s(e)){if(z[e].field.current?.hasOwnProperty("getValue"))return z[e].field.current?.getValue();throw new Error(`Reference Error: You must declare the 'getValue' function on the field "${e}"`)}throw new Error(`Form Error: There is no field registered with this name: ${e}`)}function W(e,b,M,o){if(!s(e))throw new Error(`Form Error: There is no field registered with this name: ${e}`);if(!z[e].field.current?.hasOwnProperty("setValue"))throw new Error(`Reference Error: You must declare the 'setValue' function on the field "${e}"`);{let p=f(e),t=!1;t=Array.isArray(p)&&Array.isArray(b)?Qa(p,b):Array.isArray(p)||Array.isArray(b)?p.toString()===b.toString():p===b,t||z[e].field.current?.setValue(b,M,o)}}return{register:function(e){z[e.name]={name:e.name,field:e.field,value:e.field.current?.getValue(),valid:e.valid,query:e.query,reset:e.reset,error:e.error}},unregister:function(e){if(!s(e))throw new Error(`Form Unregister Error: There is no field registered with this name: ${e}`);delete z[e]},checkFormIsValid:q,hasField:s,getValues:d,getFieldValue:function(e){return s(e)?(b=z[e].value)instanceof Object?JSON.stringify(b):b:"";var b},getFieldValueByName:f,getFieldInstance:function(e){return s(e)?z[e].field.current:null},getFields:function(){let e={};return Object.keys(z).forEach((b=>{e[b]=z[b]})),e},getFieldsInstance:function(){let e={};return Object.keys(z).forEach((b=>{e[b]=z[b].field.current})),e},setName:function(e){O(e)},setInitialValues:function(e,o=!0,p=!1){Object.keys(e).forEach((b=>{W(b,e[b],o,p)}));let z={};return Object.keys(e).forEach((b=>{z[b]=e[b]})),o&&(b&&A(z),M&&M(z)),q(),z},setInvalidField:function(e="",b=""){l(e,b),q()},setInvalidFields:function(e=[],b=""){e.forEach((e=>{l(e,b)})),q()},setFieldValue:function(e,b){if(!s(e))throw new Error(`Form Error: There is no field registered with this name: ${e}`);z[e].valid=!1,z[e].field.current?.setValue(b)},setFieldValueByName:W,setFieldError:l,removeFieldError:function(e){if(!s(e))throw new Error(`Form Error: There is no field registered with this name: ${e}`);if(z[e].valid=!0,z[e].error="",!z[e].field.current?.hasOwnProperty("setError"))throw new Error(`Reference Error: You must declare the 'setError' function on the field "${e}"`);z[e].field.current?.setError("")},updateField:function(e,o,t,c){if(!s(e))throw new Error(`Form Update Error: There is no field registered with this name: ${e}`);if(z[e].value=o,z[e].valid=c,t){p&&p({name:e,value:o,valid:c}),z[e].reset.length>0&&z[e].reset.forEach((e=>{z[e].value="",z[e].valid=!1,z[e].field.current?.reset(!1)}));let t={...d(),[e]:o};z[e].reset.length>0&&z[e].reset.forEach((e=>{t[e]=""})),b&&c&&A(t),M&&M(t)}q()},isFormValid:u((()=>r),[r]),isFieldsValid:function(e){let b=!0;return e.forEach((e=>{z[e].valid||(b=!1)})),b},isFieldValid:function(e){return z[e].valid},resetFields:function(e=!1,b=!1){Object.keys(z).forEach((M=>{if(!z[M].field.current?.hasOwnProperty("reset"))throw new Error(`Reference Error: You must declare the 'reset' function on the field "${M}"`);z[M].field.current?.reset(e,b)})),o&&o()},removeFields:function(){t({})},formId:c,updated:a}}const Yq=W((({initialValues:e,children:b,onUpdate:M,onReset:p,onFinish:z,onFinishFailed:t,onFieldUpdate:c,onValidated:n,useQueryString:i,className:a,name:A},s)=>{const d=r(null);O((()=>()=>{d.current=null}),[]),d.current=Hq({name:A,onUpdate:M,onReset:p,onFieldUpdate:c,useQueryString:i}),h(s,(()=>d.current));return o($q.Provider,{value:d.current,children:o(Uq,{initialValues:e,useQueryString:i,onUpdate:M,onFinish:z,onFinishFailed:t,onValidated:n,name:A,className:(()=>{let e="itd-form";return A&&(e+=" "+A),a&&(e+=" "+a),e})(),children:b})})}));Yq.Item=jq,Yq.Group=function({gap:e=15,horizontal:b=!1,className:M,children:p}){const z=()=>{let e="itd-form-group";return M&&(e+=" "+M),e};return o(gq,{className:z(),$gap:e,$horizontal:b,children:p})},Yq.Control=function({position:e="end",className:b,children:M}){const p=()=>{let e="itd-form-control";return b&&(e+=" "+b),e};return o(Lq,{className:p(),$position:e,children:M})},Yq.useForm=()=>i($q),Yq.useFormAPI=()=>{const e=i($q);if(!e)throw new Error("useFormAPI must be used within a FormContext.Provider");return e};const Gq=pc.div`
|
|
3321
3321
|
|
|
3322
3322
|
&.itd-accordion-menu-sub-menu {
|
|
3323
3323
|
|
package/dist/locales/en/itd.json
CHANGED
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"passwordRule": "Your password must be at least 8 characters long, contain at least one digit, one uppercase letter, one lowercase letter, one special character, and must not contain spaces.",
|
|
37
37
|
"invalidEmailAddress": "Invalid email address",
|
|
38
38
|
"passwordsDontMatch": "The two passwords that you entered do not match!",
|
|
39
|
-
"usernameRule": "
|
|
39
|
+
"usernameRule": "Only English letters, digits and symbols (-_.). No space is allowed",
|
|
40
40
|
"wrongTCIdentity": "Wrong TC Identity Number",
|
|
41
41
|
"fieldMustBeTheSame": "This field must be the same as: {{- fields}}",
|
|
42
|
-
"siteUsernameRule": "
|
|
43
|
-
"adminUsernameRule": "
|
|
42
|
+
"siteUsernameRule": "Only English lowercase letters, digits and symbols (-_.). No space is allowed, no uppercase letters are allowed",
|
|
43
|
+
"adminUsernameRule": "Only English lowercase letters and digits. No symbols (-_. vs) and no space is allowed",
|
|
44
44
|
"fieldMustBeDifferent": "This field must be different from: {{- fields}}"
|
|
45
45
|
},
|
|
46
46
|
"uploader": {
|
package/dist/locales/itd.json
CHANGED
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"passwordRule": "Şifreniz en az 8 harf olmalı, bir rakam, bir büyük ve bir küçük harf, bir özel karakter içermeli ve boşluk kullanılmamalıdır.",
|
|
38
38
|
"invalidEmailAddress": "Geçersiz e-posta adresi",
|
|
39
39
|
"passwordsDontMatch": "Girdiğiniz şifreler birbirleriyle uyuşmuyor!",
|
|
40
|
-
"usernameRule": "
|
|
40
|
+
"usernameRule": "Sadece İngilizce harfler, rakamlar ve semboller (-_.) kullanılabilir. Boşluk karakterine izin verilmez.",
|
|
41
41
|
"wrongTCIdentity": "TC Kimlik Numarası Yanlış",
|
|
42
42
|
"fieldMustBeTheSame": "Bu alan şunlarla aynı olmalıdır: {{- fields}}",
|
|
43
|
-
"siteUsernameRule": "
|
|
44
|
-
"adminUsernameRule": "
|
|
43
|
+
"siteUsernameRule": "Sadece İngilizce küçük harfler, rakamlar ve semboller (-_.) kullanılabilir. Boşluk karakterine ve büyük harflere izin verilmez.",
|
|
44
|
+
"adminUsernameRule": "Sadece ingilizce küçük harflerden ve rakamlardan oluşmalıdır. Semboller (-_. vs) ve boşluk karakteri kullanılamaz.",
|
|
45
45
|
"fieldMustBeDifferent": "Bu alan şunlarla aynı olmamalıdır: {{- fields}}"
|
|
46
46
|
},
|
|
47
47
|
"uploader": {
|
package/dist/locales/tr/itd.json
CHANGED
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"passwordRule": "Şifreniz en az 8 harf olmalı, bir rakam, bir büyük ve bir küçük harf, bir özel karakter içermeli ve boşluk kullanılmamalıdır.",
|
|
38
38
|
"invalidEmailAddress": "Geçersiz e-posta adresi",
|
|
39
39
|
"passwordsDontMatch": "Girdiğiniz şifreler birbirleriyle uyuşmuyor!",
|
|
40
|
-
"usernameRule": "
|
|
40
|
+
"usernameRule": "Sadece İngilizce harfler, rakamlar ve semboller (-_.) kullanılabilir. Boşluk karakterine izin verilmez.",
|
|
41
41
|
"wrongTCIdentity": "TC Kimlik Numarası Yanlış",
|
|
42
42
|
"fieldMustBeTheSame": "Bu alan şunlarla aynı olmalıdır: {{- fields}}",
|
|
43
|
-
"siteUsernameRule": "
|
|
44
|
-
"adminUsernameRule": "
|
|
43
|
+
"siteUsernameRule": "Sadece İngilizce küçük harfler, rakamlar ve semboller (-_.) kullanılabilir. Boşluk karakterine ve büyük harflere izin verilmez.",
|
|
44
|
+
"adminUsernameRule": "Sadece ingilizce küçük harflerden ve rakamlardan oluşmalıdır. Semboller (-_. vs) ve boşluk karakteri kullanılamaz.",
|
|
45
45
|
"fieldMustBeDifferent": "Bu alan şunlarla aynı olmamalıdır: {{- fields}}"
|
|
46
46
|
},
|
|
47
47
|
"uploader": {
|