text: var app=function(){"use strict";function e(){}function t(e){return e()}function n(){return Object.create(null)}function l(e){e.forEach(t)}function u(e){return"function"==typeof e}function c(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function o(e,t){e.appendChild(t)}function i(e,t,n){e.insertBefore(t,n||null)}function a(e){e.parentNode.removeChild(e)}function r(e){return document.createElement(e)}function s(e){return document.createTextNode(e)}function h(){return s(" ")}function f(e,t,n,l){return e.addEventListener(t,n,l),()=>e.removeEventListener(t,n,l)}function p(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function d(e){return""===e?null:+e}function g(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function _(e,t){e.value=null==t?"":t}function v(e,t){for(let n=0;n<e.options.length;n+=1){const l=e.options[n];if(l.__value===t)return void(l.selected=!0)}}let b;function m(e){b=e}const x=[],k=[],$=[],y=[],w=Promise.resolve();let j=!1;function C(e){$.push(e)}let O=!1;const E=new Set;function q(){if(!O){O=!0;do{for(let e=0;e<x.length;e+=1){const t=x[e];m(t),A(t.$$)}for(m(null),x.length=0;k.length;)k.pop()();for(let e=0;e<$.length;e+=1){const t=$[e];E.has(t)||(E.add(t),t())}$.length=0}while(x.length);for(;y.length;)y.pop()();j=!1,O=!1,E.clear()}}function A(e){if(null!==e.fragment){e.update(),l(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(C)}}const M=new Set;function N(e,t){-1===e.$$.dirty[0]&&(x.push(e),j||(j=!0,w.then(q)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function R(c,o,i,r,s,h,f=[-1]){const p=b;m(c);const d=o.props||{},g=c.$$={fragment:null,ctx:null,props:h,update:e,not_equal:s,bound:n(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(p?p.$$.context:[]),callbacks:n(),dirty:f,skip_bound:!1};let _=!1;if(g.ctx=i?i(c,d,((e,t,...n)=>{const l=n.length?n[0]:t;return g.ctx&&s(g.ctx[e],g.ctx[e]=l)&&(!g.skip_bound&&g.bound[e]&&g.bound[e](l),_&&N(c,e)),t})):[],g.update(),_=!0,l(g.before_update),g.fragment=!!r&&r(g.ctx),o.target){if(o.hydrate){const e=function(e){return Array.from(e.childNodes)}(o.target);g.fragment&&g.fragment.l(e),e.forEach(a)}else g.fragment&&g.fragment.c();o.intro&&((v=c.$$.fragment)&&v.i&&(M.delete(v),v.i(x))),function(e,n,c){const{fragment:o,on_mount:i,on_destroy:a,after_update:r}=e.$$;o&&o.m(n,c),C((()=>{const n=i.map(t).filter(u);a?a.push(...n):l(n),e.$$.on_mount=[]})),r.forEach(C)}(c,o.target,o.anchor),q()}var v,x;m(p)}function S(e,t,n){const l=e.slice();return l[43]=t[n],l}function z(t){let n;return{c(){n=r("p"),n.textContent="비밀번호 후보가 없습니다."},m(e,t){i(e,n,t)},p:e,d(e){e&&a(n)}}}function T(e){let t,n=e[13],l=[];for(let t=0;t<n.length;t+=1)l[t]=Z(S(e,n,t));return{c(){t=r("ul");for(let e=0;e<l.length;e+=1)l[e].c()},m(e,n){i(e,t,n);for(let e=0;e<l.length;e+=1)l[e].m(t,null)},p(e,u){if(8192&u[0]){let c;for(n=e[13],c=0;c<n.length;c+=1){const o=S(e,n,c);l[c]?l[c].p(o,u):(l[c]=Z(o),l[c].c(),l[c].m(t,null))}for(;c<l.length;c+=1)l[c].d(1);l.length=n.length}},d(e){e&&a(t),function(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}(l,e)}}}function Z(e){let t,n,l,u,c,f,d,_,v,b,m=e[43][0]+"",x=e[43][1]+"",k=e[43][3]+"",$=e[43][2]+"";return{c(){t=r("li"),n=r("span"),l=s(m),u=r("span"),c=s(x),f=r("span"),d=s(k),_=r("span"),v=s($),b=h(),p(n,"class","leftwing svelte-188b89e"),p(u,"class","core svelte-188b89e"),p(_,"class","rightwing svelte-188b89e")},m(e,a){i(e,t,a),o(t,n),o(n,l),o(t,u),o(u,c),o(t,f),o(f,d),o(t,_),o(_,v),o(t,b)},p(e,t){8192&t[0]&&m!==(m=e[43][0]+"")&&g(l,m),8192&t[0]&&x!==(x=e[43][1]+"")&&g(c,x),8192&t[0]&&k!==(k=e[43][3]+"")&&g(d,k),8192&t[0]&&$!==($=e[43][2]+"")&&g(v,$)},d(e){e&&a(t)}}}function L(t){let n,u,c,g,b,m,x,k,$,y,w,j,O,E,q,A,M,N,R,S,Z,L,P,Q,U,W,B,D,F,G,H,I,J,K,V,X,Y,ee,te,ne,le,ue,ce,oe,ie,ae,re,se,he,fe,pe,de,ge,_e,ve,be,me,xe,ke,$e,ye,we,je,Ce,Oe,Ee,qe,Ae,Me,Ne,Re,Se,ze,Te,Ze,Le,Pe,Qe,Ue,We,Be,De,Fe,Ge,He,Ie,Je,Ke,Ve,Xe,Ye,et;function tt(e,t){return e[13].length?T:z}let nt=tt(t),lt=nt(t);return{c(){n=r("div"),u=r("main"),c=r("textarea"),g=h(),b=r("p"),m=r("button"),m.textContent="추출",x=h(),lt.c(),k=h(),$=r("nav"),y=r("h2"),y.textContent="설정",w=h(),j=r("h3"),j.textContent="원문",O=h(),E=r("h4"),E.textContent="사용 자판",q=h(),A=r("label"),M=r("input"),N=s("\n      두벌식"),R=h(),S=r("label"),Z=r("input"),L=s("\n      세벌식 390"),P=h(),Q=r("label"),U=r("input"),W=s("\n      세벌식 최종"),B=h(),D=r("h4"),D.textContent="자판에 있는 글자",F=h(),G=r("label"),H=s("건너뛰기\n      "),I=r("input"),J=h(),K=r("label"),V=s("끊기\n      "),X=r("input"),Y=h(),ee=r("h4"),ee.textContent="자판에 없는 글자",te=h(),ne=r("label"),le=r("input"),ue=s("\n      건너뛰기"),ce=h(),oe=r("label"),ie=r("input"),ae=s("\n      끊기"),re=h(),se=r("h4"),se.textContent="띄어쓰기, 줄 바꿈 등",he=h(),fe=r("label"),pe=r("input"),de=s("\n      건너뛰기"),ge=h(),_e=r("label"),ve=r("input"),be=s("\n      끊기"),me=h(),xe=r("h3"),xe.textContent="비밀번호",ke=h(),$e=r("h4"),$e.textContent="비밀번호 길이",ye=h(),we=r("label"),je=s("최소\n      "),Ce=r("input"),Oe=h(),Ee=r("label"),qe=s("최대\n      "),Ae=r("input"),Me=h(),Ne=r("h4"),Ne.textContent="비밀번호 조건",Re=h(),Se=r("label"),ze=r("input"),Te=s("\n      숫자 포함"),Ze=h(),Le=r("label"),Pe=r("input"),Qe=s("\n      대문자 포함"),Ue=h(),We=r("label"),Be=r("input"),De=s("\n      특수문자 포함"),Fe=h(),Ge=r("h4"),Ge.textContent="특수문자 조건",He=h(),Ie=r("input"),Je=s("만\n    "),Ke=r("select"),Ve=r("option"),Ve.textContent="포함",Xe=r("option"),Xe.textContent="제외",p(c,"class","svelte-188b89e"),p(m,"class","svelte-188b89e"),p(u,"class","svelte-188b89e"),p(M,"type","radio"),M.__value="2",M.value=M.__value,t[17][0].push(M),p(Z,"type","radio"),Z.__value="390",Z.value=Z.__value,t[17][0].push(Z),p(U,"type","radio"),U.__value="391",U.value=U.__value,t[17][0].push(U),p(I,"type","text"),p(X,"type","text"),p(le,"type","radio"),le.__value="skip",le.value=le.__value,t[17][1].push(le),p(ie,"type","radio"),ie.__value="break",ie.value=ie.__value,t[17][1].push(ie),p(pe,"type","radio"),pe.__value="skip",pe.value=pe.__value,t[17][2].push(pe),p(ve,"type","radio"),ve.__value="break",ve.value=ve.__value,t[17][2].push(ve),p(Ce,"type","number"),p(Ae,"type","number"),p(ze,"type","checkbox"),p(Pe,"type","checkbox"),p(Be,"type","checkbox"),p(Ie,"type","text"),Ve.__value="only",Ve.value=Ve.__value,Xe.__value="except",Xe.value=Xe.__value,void 0===t[1]&&C((()=>t[32].call(Ke))),p($,"class","svelte-188b89e"),p(n,"class","box svelte-188b89e")},m(e,l){i(e,n,l),o(n,u),o(u,c),_(c,t[12]),o(u,g),o(u,b),o(b,m),o(u,x),lt.m(u,null),o(n,k),o(n,$),o($,y),o($,w),o($,j),o($,O),o($,E),o($,q),o($,A),o(A,M),M.checked=M.__value===t[0],o(A,N),o($,R),o($,S),o(S,Z),Z.checked=Z.__value===t[0],o(S,L),o($,P),o($,Q),o(Q,U),U.checked=U.__value===t[0],o(Q,W),o($,B),o($,D),o($,F),o($,G),o(G,H),o(G,I),_(I,t[5]),o($,J),o($,K),o(K,V),o(K,X),_(X,t[6]),o($,Y),o($,ee),o($,te),o($,ne),o(ne,le),le.checked=le.__value===t[3],o(ne,ue),o($,ce),o($,oe),o(oe,ie),ie.checked=ie.__value===t[3],o(oe,ae),o($,re),o($,se),o($,he),o($,fe),o(fe,pe),pe.checked=pe.__value===t[4],o(fe,de),o($,ge),o($,_e),o(_e,ve),ve.checked=ve.__value===t[4],o(_e,be),o($,me),o($,xe),o($,ke),o($,$e),o($,ye),o($,we),o(we,je),o(we,Ce),_(Ce,t[10]),o($,Oe),o($,Ee),o(Ee,qe),o(Ee,Ae),_(Ae,t[11]),o($,Me),o($,Ne),o($,Re),o($,Se),o(Se,ze),ze.checked=t[7],o(Se,Te),o($,Ze),o($,Le),o(Le,Pe),Pe.checked=t[8],o(Le,Qe),o($,Ue),o($,We),o(We,Be),Be.checked=t[9],o(We,De),o($,Fe),o($,Ge),o($,He),o($,Ie),_(Ie,t[2]),o($,Je),o($,Ke),o(Ke,Ve),o(Ke,Xe),v(Ke,t[1]),Ye||(et=[f(c,"input",t[15]),f(m,"click",t[14]),f(M,"change",t[16]),f(Z,"change",t[18]),f(U,"change",t[19]),f(I,"input",t[20]),f(X,"input",t[21]),f(le,"change",t[22]),f(ie,"change",t[23]),f(pe,"change",t[24]),f(ve,"change",t[25]),f(Ce,"input",t[26]),f(Ae,"input",t[27]),f(ze,"change",t[28]),f(Pe,"change",t[29]),f(Be,"change",t[30]),f(Ie,"input",t[31]),f(Ke,"change",t[32])],Ye=!0)},p(e,t){4096&t[0]&&_(c,e[12]),nt===(nt=tt(e))&&lt?lt.p(e,t):(lt.d(1),lt=nt(e),lt&&(lt.c(),lt.m(u,null))),1&t[0]&&(M.checked=M.__value===e[0]),1&t[0]&&(Z.checked=Z.__value===e[0]),1&t[0]&&(U.checked=U.__value===e[0]),32&t[0]&&I.value!==e[5]&&_(I,e[5]),64&t[0]&&X.value!==e[6]&&_(X,e[6]),8&t[0]&&(le.checked=le.__value===e[3]),8&t[0]&&(ie.checked=ie.__value===e[3]),16&t[0]&&(pe.checked=pe.__value===e[4]),16&t[0]&&(ve.checked=ve.__value===e[4]),1024&t[0]&&d(Ce.value)!==e[10]&&_(Ce,e[10]),2048&t[0]&&d(Ae.value)!==e[11]&&_(Ae,e[11]),128&t[0]&&(ze.checked=e[7]),256&t[0]&&(Pe.checked=e[8]),512&t[0]&&(Be.checked=e[9]),4&t[0]&&Ie.value!==e[2]&&_(Ie,e[2]),2&t[0]&&v(Ke,e[1])},i:e,o:e,d(e){e&&a(n),lt.d(),t[17][0].splice(t[17][0].indexOf(M),1),t[17][0].splice(t[17][0].indexOf(Z),1),t[17][0].splice(t[17][0].indexOf(U),1),t[17][1].splice(t[17][1].indexOf(le),1),t[17][1].splice(t[17][1].indexOf(ie),1),t[17][2].splice(t[17][2].indexOf(pe),1),t[17][2].splice(t[17][2].indexOf(ve),1),Ye=!1,l(et)}}}function P(e){let t=[],n=[];for(let l of e)l.allowed?n.push(l):n.length&&(t.push(n),n=[]);return n.length&&t.push(n),t}function Q(e){return e=e.replace(/\s+/g,"").replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),new RegExp("["+e+"]+","g")}function U(e,t,n="break"){return"skip"===n?e.map((e=>e.replace(t,""))):e.reduce(((e,n)=>e.concat(n.split(t))),[])}function W(e,t,n){let l;const u={choseong:"r R s e E f a q Q t T d w W c z x v g".split(" "),jungseong:"k o i O j p u P h hk ho hl y n nj np nl b m ml l".split(" "),jongseong:" r R rt s sw sg e f fr fa fq ft fx fv fg a q qt t T d w c z x v g".split(" "),from:"`1234567890-=\\[];',./~!@#$%^&*()_+|{}:\"<>?",to:"`1234567890-=\\[];',./~!@#$%^&*()_+|{}:\"<>?",absent:/[^!-@[-`{-~ㄱ-ㅎㅏ-ㅣ가-힣]+/g},c={choseong:"k kk h u uu y i ; ;; n nn j l ll o 0 ' p m".split(" "),jungseong:"f r 6 R t c e 7 v /f /r /d 4 b 9t 9c 9d 5 g 8 d".split(" "),jongseong:" x F xq s s! S A w D C w3 wq wW wQ V z 3 X q 2 a ! Z E W Q 1".split(" "),from:"`1234567890-=\\[];',./~!@#$%^&*()_+|{}:\"<>?",to:'`M<>JKLUION-=\\[]TH,.G~B@#$%^&*()_+|{}:"YP?',absent:/[^!-@[-`{-~ㄱ-ㅎㅏ-ㅣ가-힣]+/g},o={choseong:"k kk h u uu y i ; ;; n nn j l ll o 0 ' p m".split(" "),jungseong:"f r 6 G t c e 7 v /f /r /d 4 b 9t 9c 9d 5 g 8 d".split(" "),jongseong:" x ! V s E S A w @ F D T % $ R z 3 X q 2 a # Z C W Q 1".split(" "),from:"?-\",.!0123456789·:\\*※=“”'~()%;<>/+",to:'BNM,.?HJKL:YUIOP"\\|`~^&*()[-{_]=}+',absent:/[^!"%'-?\\~ㄱ-ㅎㅏ-ㅣ가-힣·“”※]+/g};let i,a="390",r="break",s="skip",h=", ' \"",f=". ;",p="except",g="[ ] { }",_=!0,v=!1,b=!0,m=8,x=20,k="유구한 역사와 전통에 빛나는 우리 대한국민은 3·1운동으로 건립된 대한민국임시정부의 법통과 불의에 항거한 4·19민주이념을 계승하고, 조국의 민주개혁과 평화적 통일의 사명에 입각하여 정의·인도와 동포애로써 민족의 단결을 공고히 하고, 모든 사회적 폐습과 불의를 타파하며, 자율과 조화를 바탕으로 자유민주적 기본질서를 더욱 확고히 하여 정치·경제·사회·문화의 모든 영역에 있어서 각인의 기회를 균등히 하고, 능력을 최고도로 발휘하게 하며, 자유와 권리에 따르는 책임과 의무를 완수하게 하여, 안으로는 국민생활의 균등한 향상을 기하고 밖으로는 항구적인 세계평화와 인류공영에 이바지함으로써 우리들과 우리들의 자손의 안전과 자유와 행복을 영원히 확보할 것을 다짐하면서 1948년 7월 12일에 제정되고 8차에 걸쳐 개정된 헌법을 이제 국회의 의결을 거쳐 국민투표에 의하여 개정한다.",$=[];function y(e){let t=[];if(_&&t.push((e=>e.hasNumber)),v&&t.push((e=>e.hasUpper)),b&&t.push((e=>e.hasSpecial)),0===t.length)return function(e){if(e.reduce(((e,t)=>e+t.length),0)<m)return[];let t=e.map((e=>e.orig)).join(""),n=0;for(var l=0;l<e.length&&(n+=e[l].length,!(n>x));l++);n=0;for(var u=e.length;u>0&&(n+=e[u-1].length,!(n>x));u--);return l<=u?[[t.slice(0,l),"",t.slice(u),t.slice(l,u)]]:[[t.slice(0,u),t.slice(u,l),t.slice(l),""]]}(e);let n=t.map((()=>-1)),l=[],u=[];for(let t of e){let e=[l.length,l.length+t.length];for(let n=0;n<t.length;n++)l.push(e);u.push(t.orig);for(let e=1;e<t.length;e++)u.push("")}if(l[l.length-1][1]<m)return[];let c=[],o=0,i=-1;for(let a=0;a<e.length;a++){for(let l=0;l<t.length;l++)t[l](e[a])&&(n[l]=o);o+=e[a].length;let r=o,s=Math.min(...n);if(i===s)continue;i=s;let h=l[Math.max(0,r-x)][0];for(;h<=s;){if(l[Math.min(h+m,l.length-1)][1]-s<=x)break;h=l[h][1]}if(h>s)continue;let f=l[Math.min(s+x,l.length-1)][1];for(;f>=r;){if(f-l[Math.max(0,f-m)][0]<=x)break;f=l[f-1][0]}f<r||c.push([u.slice(h,s).join(""),u.slice(s,r).join(""),u.slice(r,f).join(""),""])}return c}function w(e){const t=function(e){let t=l.from.indexOf(e);if(-1!==t)return l.to[t];let n=function(e){let t=e.charCodeAt(0);if("O"<=e&&e<="c")return[null,t-12623,null];let n="ㄱㄲㄴㄷㄸㄹㅁㅂㅃㅅㅆㅇㅈㅉㅊㅋㅌㅍㅎ".indexOf(e);return-1!==n?[n,null,null]:(n="ㄱㄲㄳㄴㄵㄶㄷㄹㄺㄻㄼㄽㄾㄿㅀㅁㅂㅄㅅㅆㅇㅈㅊㅋㅌㅍㅎ".indexOf(e),-1!==n?[null,null,n+1]:[(t-44032)/588|0,(t-44032)%588/28|0,(t-44032)%28])}(e),u="";return null!=n[0]&&(u+=l.choseong[n[0]]),null!=n[1]&&(u+=l.jungseong[n[1]]),null!=n[2]&&(u+=l.jongseong[n[2]]),u}(e);return{orig:e,chars:t,length:t.length,allowed:i.test(t),hasNumber:/\d/.test(t),hasUpper:/[A-Z]/.test(t),hasSpecial:/[^0-9A-Za-z]/.test(t)}}return e.$$.update=()=>{if(1&e.$$.dirty[0]&&(l="2"===a?u:"390"===a?c:o),6&e.$$.dirty[0]){let e=g.replace(/\s+/g,"").replace(/[.*+?^${}()|[\]\\]/g,"\\$&");i="except"===p?RegExp("^[^"+e+"]*$","i"):new RegExp("^[a-zA-Zd"+e+"]*$","i")}},[a,p,g,r,s,h,f,_,v,b,m,x,k,$,function(){n(13,$=function(e){let t=[e];return t=U(t,/\s+/g,s),t=U(t,l.absent,r),t=U(t,Q(h),"skip"),t=U(t,Q(f),"break"),t}(k).map((e=>e.split("").map(w))).flatMap(P).flatMap(y))},function(){k=this.value,n(12,k)},function(){a=this.__value,n(0,a)},[[],[],[]],function(){a=this.__value,n(0,a)},function(){a=this.__value,n(0,a)},function(){h=this.value,n(5,h)},function(){f=this.value,n(6,f)},function(){r=this.__value,n(3,r)},function(){r=this.__value,n(3,r)},function(){s=this.__value,n(4,s)},function(){s=this.__value,n(4,s)},function(){m=d(this.value),n(10,m)},function(){x=d(this.value),n(11,x)},function(){_=this.checked,n(7,_)},function(){v=this.checked,n(8,v)},function(){b=this.checked,n(9,b)},function(){g=this.value,n(2,g)},function(){p=function(e){const t=e.querySelector(":checked")||e.options[0];return t&&t.__value}(this),n(1,p)}]}return new class extends class{$destroy(){!function(e,t){const n=e.$$;null!==n.fragment&&(l(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}(this,1),this.$destroy=e}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}{constructor(e){super(),R(this,e,W,L,c,{},[-1,-1])}}({target:document.body})}();
  //# sourceMappingURL=bundle.js.map
  