WordPress 内部リンクの貼り方2選
WordPress 2021.01.10
こんにちは。
ぽちぽち(@pochi14_com)です。
新しくブログを書いているときに
今回の記事には前に書いた記事が
参考になるなぁ。
とか
この情報を前提に書いているので
知っておいてもらいたい。
などという場合があると思います。
そういうときに
過去の参照記事はこちら
と青字だけでリンクを貼るのではなく、
と、画像、タイトル、文章の頭らへんを表示させたい場合のやり方です。
簡単にまとめると
1ブロックに対して1つのURL
表示内容はダッシュボード → Cocoon設定 → ブログカード で設定ができます
です。
以下解説していきます。
内部リンク2つの表示方法
URLをそのまま打ち込む
1ブロックに自分の記事のURLを
打ち込むだけです。
URLを打ち込み終わるとすぐに
このように表示されますが
プレビューで見ると
![](//buckup.pochipochi14.com/wp-content/plugins/a3-lazy-load/assets/images/lazy_placeholder.gif)
このように表示されます。
表示内容の設定変更は
ダッシュボード内の
Cocoon設定をクリック
タブの中のブログカード
から編集ができます。
好みに合わせて設定してみてください。
ブロックの追加から表示
[+ボタン]をクリック
ブログカードと打ち込む
[ブログカード]をクリック
![](//buckup.pochipochi14.com/wp-content/plugins/a3-lazy-load/assets/images/lazy_placeholder.gif)
プレビューで見ると
このように表示されます。
WordPressのテーマは
Cocoonです。
他のブログではもちろん
WordPressでもテーマによっては
やり方が違うこともあると思います。
テーマや好みに合った方法を
探してみてください。
参考になれば幸いです。
ありがとうございました。
"+t+"<\/script"+">"},h=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;h=n?function(t){t.write(p("")),t.close();var e=t.parentWindow.Object;return t=null,e}(n):((e=s("iframe")).style.display="none",u.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(p("document.F=Object")),t.close(),t.F);for(var r=a.length;r--;)delete h.prototype[a[r]];return h()};c[f]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(l.prototype=o(t),r=new l,l.prototype=null,r[f]=t):r=h(),void 0===e?r:i(r,e)}},6048:function(t,e,r){var n=r(9781),o=r(3070),i=r(9670),a=r(1956);t.exports=n?Object.defineProperties:function(t,e){i(t);for(var r,n=a(e),c=n.length,u=0;c>u;)o.f(t,r=n[u++],e[r]);return t}},3070:function(t,e,r){var n=r(9781),o=r(4664),i=r(9670),a=r(7593),c=Object.defineProperty;e.f=n?c:function(t,e,r){if(i(t),e=a(e,!0),i(r),o)try{return c(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},1236:function(t,e,r){var n=r(9781),o=r(5296),i=r(9114),a=r(5656),c=r(7593),u=r(6656),s=r(4664),f=Object.getOwnPropertyDescriptor;e.f=n?f:function(t,e){if(t=a(t),e=c(e,!0),s)try{return f(t,e)}catch(t){}if(u(t,e))return i(!o.f.call(t,e),t[e])}},8006:function(t,e,r){var n=r(6324),o=r(748).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},5181:function(t,e){e.f=Object.getOwnPropertySymbols},9518:function(t,e,r){var n=r(6656),o=r(7908),i=r(6200),a=r(8544),c=i("IE_PROTO"),u=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=o(t),n(t,c)?t[c]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},6324:function(t,e,r){var n=r(6656),o=r(5656),i=r(1318).indexOf,a=r(3501);t.exports=function(t,e){var r,c=o(t),u=0,s=[];for(r in c)!n(a,r)&&n(c,r)&&s.push(r);for(;e.length>u;)n(c,r=e[u++])&&(~i(s,r)||s.push(r));return s}},1956:function(t,e,r){var n=r(6324),o=r(748);t.exports=Object.keys||function(t){return n(t,o)}},5296:function(t,e){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);e.f=o?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},7674:function(t,e,r){var n=r(9670),o=r(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,i){return n(r),o(i),e?t.call(r,i):r.__proto__=i,r}}():void 0)},288:function(t,e,r){"use strict";var n=r(1694),o=r(648);t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},3887:function(t,e,r){var n=r(5005),o=r(8006),i=r(5181),a=r(9670);t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(a(t)),r=i.f;return r?e.concat(r(t)):e}},857:function(t,e,r){var n=r(7854);t.exports=n},2534:function(t){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},9478:function(t,e,r){var n=r(9670),o=r(111),i=r(8523);t.exports=function(t,e){if(n(t),o(e)&&e.constructor===t)return e;var r=i.f(t);return(0,r.resolve)(e),r.promise}},2248:function(t,e,r){var n=r(1320);t.exports=function(t,e,r){for(var o in e)n(t,o,e[o],r);return t}},1320:function(t,e,r){var n=r(7854),o=r(8880),i=r(6656),a=r(3505),c=r(2788),u=r(9909),s=u.get,f=u.enforce,l=String(String).split("String");(t.exports=function(t,e,r,c){var u,s=!!c&&!!c.unsafe,p=!!c&&!!c.enumerable,h=!!c&&!!c.noTargetGet;"function"==typeof r&&("string"!=typeof e||i(r,"name")||o(r,"name",e),(u=f(r)).source||(u.source=l.join("string"==typeof e?e:""))),t!==n?(s?!h&&t[e]&&(p=!0):delete t[e],p?t[e]=r:o(t,e,r)):p?t[e]=r:a(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&s(this).source||c(this)}))},4488:function(t){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},3505:function(t,e,r){var n=r(7854),o=r(8880);t.exports=function(t,e){try{o(n,t,e)}catch(r){n[t]=e}return e}},6340:function(t,e,r){"use strict";var n=r(5005),o=r(3070),i=r(5112),a=r(9781),c=i("species");t.exports=function(t){var e=n(t),r=o.f;a&&e&&!e[c]&&r(e,c,{configurable:!0,get:function(){return this}})}},8003:function(t,e,r){var n=r(3070).f,o=r(6656),i=r(5112)("toStringTag");t.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,i)&&n(t,i,{configurable:!0,value:e})}},6200:function(t,e,r){var n=r(2309),o=r(9711),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},5465:function(t,e,r){var n=r(7854),o=r(3505),i="__core-js_shared__",a=n[i]||o(i,{});t.exports=a},2309:function(t,e,r){var n=r(1913),o=r(5465);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.9.1",mode:n?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(t,e,r){var n=r(9670),o=r(3099),i=r(5112)("species");t.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||null==(r=n(a)[i])?e:o(r)}},8710:function(t,e,r){var n=r(9958),o=r(4488),i=function(t){return function(e,r){var i,a,c=String(o(e)),u=n(r),s=c.length;return u<0||u>=s?t?"":void 0:(i=c.charCodeAt(u))<55296||i>56319||u+1===s||(a=c.charCodeAt(u+1))<56320||a>57343?t?c.charAt(u):i:t?c.slice(u,u+2):a-56320+(i-55296<<10)+65536}};t.exports={codeAt:i(!1),charAt:i(!0)}},3197:function(t){"use strict";var e=2147483647,r=/[^\0-\u007E]/,n=/[.\u3002\uFF0E\uFF61]/g,o="Overflow: input needs wider integers to process",i=Math.floor,a=String.fromCharCode,c=function(t){return t+22+75*(t<26)},u=function(t,e,r){var n=0;for(t=r?i(t/700):t>>1,t+=i(t/e);t>455;n+=36)t=i(t/35);return i(n+36*t/(t+38))},s=function(t){var r,n,s=[],f=(t=function(t){for(var e=[],r=0,n=t.length;r
=55296&&o<=56319&&r=l&&ni((e-p)/g))throw RangeError(o);for(p+=(d-l)*g,l=d,r=0;re)throw RangeError(o);if(n==l){for(var m=p,w=36;;w+=36){var b=w<=h?1:w>=h+26?26:w-h;if(mr;)e.push(arguments[r++]);return b[++w]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},n(w),w},y=function(t){delete b[t]},p?n=function(t){d.nextTick(S(t))}:m&&m.now?n=function(t){m.now(S(t))}:g&&!l?(i=(o=new g).port2,o.port1.onmessage=L,n=u(i.postMessage,i,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts&&h&&"file:"!==h.protocol&&!c(j)?(n=j,a.addEventListener("message",L,!1)):n="onreadystatechange"in f("script")?function(t){s.appendChild(f("script")).onreadystatechange=function(){s.removeChild(this),x(t)}}:function(t){setTimeout(S(t),0)}),t.exports={set:v,clear:y}},1400:function(t,e,r){var n=r(9958),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},5656:function(t,e,r){var n=r(8361),o=r(4488);t.exports=function(t){return n(o(t))}},9958:function(t){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},7466:function(t,e,r){var n=r(9958),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},7908:function(t,e,r){var n=r(4488);t.exports=function(t){return Object(n(t))}},7593:function(t,e,r){var n=r(111);t.exports=function(t,e){if(!n(t))return t;var r,o;if(e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!n(o=r.call(t)))return o;if(!e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},1694:function(t,e,r){var n={};n[r(5112)("toStringTag")]="z",t.exports="[object z]"===String(n)},9711:function(t){var e=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++e+r).toString(36)}},3307:function(t,e,r){var n=r(133);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5112:function(t,e,r){var n=r(7854),o=r(2309),i=r(6656),a=r(9711),c=r(133),u=r(3307),s=o("wks"),f=n.Symbol,l=u?f:f&&f.withoutSetter||a;t.exports=function(t){return i(s,t)&&(c||"string"==typeof s[t])||(c&&i(f,t)?s[t]=f[t]:s[t]=l("Symbol."+t)),s[t]}},6992:function(t,e,r){"use strict";var n=r(5656),o=r(1223),i=r(7497),a=r(9909),c=r(654),u="Array Iterator",s=a.set,f=a.getterFor(u);t.exports=c(Array,"Array",(function(t,e){s(this,{type:u,target:n(t),index:0,kind:e})}),(function(){var t=f(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},9600:function(t,e,r){"use strict";var n=r(2109),o=r(8361),i=r(5656),a=r(9341),c=[].join,u=o!=Object,s=a("join",",");n({target:"Array",proto:!0,forced:u||!s},{join:function(t){return c.call(i(this),void 0===t?",":t)}})},1539:function(t,e,r){var n=r(1694),o=r(1320),i=r(288);n||o(Object.prototype,"toString",i,{unsafe:!0})},8674:function(t,e,r){"use strict";var n,o,i,a,c=r(2109),u=r(1913),s=r(7854),f=r(5005),l=r(3366),p=r(1320),h=r(2248),v=r(8003),y=r(6340),d=r(111),g=r(3099),m=r(5787),w=r(2788),b=r(408),x=r(7072),S=r(6707),L=r(261).set,j=r(5948),k=r(9478),O=r(842),E=r(8523),A=r(2534),P=r(9909),R=r(4705),T=r(5112),_=r(5268),U=r(7392),I=T("species"),q="Promise",F=P.get,C=P.set,M=P.getterFor(q),B=l,N=s.TypeError,G=s.document,D=s.process,V=f("fetch"),z=E.f,H=z,Y=!!(G&&G.createEvent&&s.dispatchEvent),W="function"==typeof PromiseRejectionEvent,$="unhandledrejection",J=R(q,(function(){if(w(B)===String(B)){if(66===U)return!0;if(!_&&!W)return!0}if(u&&!B.prototype.finally)return!0;if(U>=51&&/native code/.test(B))return!1;var t=B.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[I]=e,!(t.then((function(){}))instanceof e)})),K=J||!x((function(t){B.all(t).catch((function(){}))})),X=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},Z=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;j((function(){for(var n=t.value,o=1==t.state,i=0;r.length>i;){var a,c,u,s=r[i++],f=o?s.ok:s.fail,l=s.resolve,p=s.reject,h=s.domain;try{f?(o||(2===t.rejection&&rt(t),t.rejection=1),!0===f?a=n:(h&&h.enter(),a=f(n),h&&(h.exit(),u=!0)),a===s.promise?p(N("Promise-chain cycle")):(c=X(a))?c.call(a,l,p):l(a)):p(n)}catch(t){h&&!u&&h.exit(),p(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&tt(t)}))}},Q=function(t,e,r){var n,o;Y?((n=G.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),s.dispatchEvent(n)):n={promise:e,reason:r},!W&&(o=s["on"+t])?o(n):t===$&&O("Unhandled promise rejection",r)},tt=function(t){L.call(s,(function(){var e,r=t.facade,n=t.value;if(et(t)&&(e=A((function(){_?D.emit("unhandledRejection",n,r):Q($,r,n)})),t.rejection=_||et(t)?2:1,e.error))throw e.value}))},et=function(t){return 1!==t.rejection&&!t.parent},rt=function(t){L.call(s,(function(){var e=t.facade;_?D.emit("rejectionHandled",e):Q("rejectionhandled",e,t.value)}))},nt=function(t,e,r){return function(n){t(e,n,r)}},ot=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,Z(t,!0))},it=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw N("Promise can't be resolved itself");var n=X(e);n?j((function(){var r={done:!1};try{n.call(e,nt(it,r,t),nt(ot,r,t))}catch(e){ot(r,e,t)}})):(t.value=e,t.state=1,Z(t,!1))}catch(e){ot({done:!1},e,t)}}};J&&(B=function(t){m(this,B,q),g(t),n.call(this);var e=F(this);try{t(nt(it,e),nt(ot,e))}catch(t){ot(e,t)}},(n=function(t){C(this,{type:q,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=h(B.prototype,{then:function(t,e){var r=M(this),n=z(S(this,B));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=_?D.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&Z(r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new n,e=F(t);this.promise=t,this.resolve=nt(it,e),this.reject=nt(ot,e)},E.f=z=function(t){return t===B||t===i?new o(t):H(t)},u||"function"!=typeof l||(a=l.prototype.then,p(l.prototype,"then",(function(t,e){var r=this;return new B((function(t,e){a.call(r,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof V&&c({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return k(B,V.apply(s,arguments))}}))),c({global:!0,wrap:!0,forced:J},{Promise:B}),v(B,q,!1,!0),y(q),i=f(q),c({target:q,stat:!0,forced:J},{reject:function(t){var e=z(this);return e.reject.call(void 0,t),e.promise}}),c({target:q,stat:!0,forced:u||J},{resolve:function(t){return k(u&&this===i?B:this,t)}}),c({target:q,stat:!0,forced:K},{all:function(t){var e=this,r=z(e),n=r.resolve,o=r.reject,i=A((function(){var r=g(e.resolve),i=[],a=0,c=1;b(t,(function(t){var u=a++,s=!1;i.push(void 0),c++,r.call(e,t).then((function(t){s||(s=!0,i[u]=t,--c||n(i))}),o)})),--c||n(i)}));return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=z(e),n=r.reject,o=A((function(){var o=g(e.resolve);b(t,(function(t){o.call(e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}})},8783:function(t,e,r){"use strict";var n=r(8710).charAt,o=r(9909),i=r(654),a="String Iterator",c=o.set,u=o.getterFor(a);i(String,"String",(function(t){c(this,{type:a,string:String(t),index:0})}),(function(){var t,e=u(this),r=e.string,o=e.index;return o>=r.length?{value:void 0,done:!0}:(t=n(r,o),e.index+=t.length,{value:t,done:!1})}))},4747:function(t,e,r){var n=r(7854),o=r(8324),i=r(8533),a=r(8880);for(var c in o){var u=n[c],s=u&&u.prototype;if(s&&s.forEach!==i)try{a(s,"forEach",i)}catch(t){s.forEach=i}}},3948:function(t,e,r){var n=r(7854),o=r(8324),i=r(6992),a=r(8880),c=r(5112),u=c("iterator"),s=c("toStringTag"),f=i.values;for(var l in o){var p=n[l],h=p&&p.prototype;if(h){if(h[u]!==f)try{a(h,u,f)}catch(t){h[u]=f}if(h[s]||a(h,s,l),o[l])for(var v in i)if(h[v]!==i[v])try{a(h,v,i[v])}catch(t){h[v]=i[v]}}}},1637:function(t,e,r){"use strict";r(6992);var n=r(2109),o=r(5005),i=r(590),a=r(1320),c=r(2248),u=r(8003),s=r(4994),f=r(9909),l=r(5787),p=r(6656),h=r(9974),v=r(648),y=r(9670),d=r(111),g=r(30),m=r(9114),w=r(8554),b=r(1246),x=r(5112),S=o("fetch"),L=o("Headers"),j=x("iterator"),k="URLSearchParams",O="URLSearchParamsIterator",E=f.set,A=f.getterFor(k),P=f.getterFor(O),R=/\+/g,T=Array(4),_=function(t){return T[t-1]||(T[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},U=function(t){try{return decodeURIComponent(t)}catch(e){return t}},I=function(t){var e=t.replace(R," "),r=4;try{return decodeURIComponent(e)}catch(t){for(;r;)e=e.replace(_(r--),U);return e}},q=/[!'()~]|%20/g,F={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},C=function(t){return F[t]},M=function(t){return encodeURIComponent(t).replace(q,C)},B=function(t,e){if(e)for(var r,n,o=e.split("&"),i=0;i0?arguments[0]:void 0,f=this,h=[];if(E(f,{type:k,entries:h,updateURL:function(){},updateSearchParams:N}),void 0!==s)if(d(s))if("function"==typeof(t=b(s)))for(r=(e=t.call(s)).next;!(n=r.call(e)).done;){if((a=(i=(o=w(y(n.value))).next).call(o)).done||(c=i.call(o)).done||!i.call(o).done)throw TypeError("Expected sequence with length 2");h.push({key:a.value+"",value:c.value+""})}else for(u in s)p(s,u)&&h.push({key:u,value:s[u]+""});else B(h,"string"==typeof s?"?"===s.charAt(0)?s.slice(1):s:s+"")},z=V.prototype;c(z,{append:function(t,e){G(arguments.length,2);var r=A(this);r.entries.push({key:t+"",value:e+""}),r.updateURL()},delete:function(t){G(arguments.length,1);for(var e=A(this),r=e.entries,n=t+"",o=0;ot.key){o.splice(e,0,t);break}e===r&&o.push(t)}n.updateURL()},forEach:function(t){for(var e,r=A(this).entries,n=h(t,arguments.length>1?arguments[1]:void 0,3),o=0;o1&&(d(e=arguments[1])&&(r=e.body,v(r)===k&&((n=e.headers?new L(e.headers):new L).has("content-type")||n.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),e=g(e,{body:m(0,String(r)),headers:m(0,n)}))),o.push(e)),S.apply(this,o)}}),t.exports={URLSearchParams:V,getState:A}},285:function(t,e,r){"use strict";r(8783);var n,o=r(2109),i=r(9781),a=r(590),c=r(7854),u=r(6048),s=r(1320),f=r(5787),l=r(6656),p=r(1574),h=r(8457),v=r(8710).codeAt,y=r(3197),d=r(8003),g=r(1637),m=r(9909),w=c.URL,b=g.URLSearchParams,x=g.getState,S=m.set,L=m.getterFor("URL"),j=Math.floor,k=Math.pow,O="Invalid scheme",E="Invalid host",A="Invalid port",P=/[A-Za-z]/,R=/[\d+-.A-Za-z]/,T=/\d/,_=/^(0x|0X)/,U=/^[0-7]+$/,I=/^\d+$/,q=/^[\dA-Fa-f]+$/,F=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,C=/[\u0000\t\u000A\u000D #/:?@[\\]]/,M=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,B=/[\t\u000A\u000D]/g,N=function(t,e){var r,n,o;if("["==e.charAt(0)){if("]"!=e.charAt(e.length-1))return E;if(!(r=D(e.slice(1,-1))))return E;t.host=r}else if(K(t)){if(e=y(e),F.test(e))return E;if(null===(r=G(e)))return E;t.host=r}else{if(C.test(e))return E;for(r="",n=h(e),o=0;o4)return t;for(r=[],n=0;n1&&"0"==o.charAt(0)&&(i=_.test(o)?16:8,o=o.slice(8==i?1:2)),""===o)a=0;else{if(!(10==i?I:8==i?U:q).test(o))return t;a=parseInt(o,i)}r.push(a)}for(n=0;n=k(256,5-e))return null}else if(a>255)return null;for(c=r.pop(),n=0;n6)return;for(n=0;p();){if(o=null,n>0){if(!("."==p()&&n<4))return;l++}if(!T.test(p()))return;for(;T.test(p());){if(i=parseInt(p(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;l++}u[s]=256*u[s]+o,2!=++n&&4!=n||s++}if(4!=n)return;break}if(":"==p()){if(l++,!p())return}else if(p())return;u[s++]=e}else{if(null!==f)return;l++,f=++s}}if(null!==f)for(a=s-f,s=7;0!=s&&a>0;)c=u[s],u[s--]=u[f+a-1],u[f+--a]=c;else if(8!=s)return;return u},V=function(t){var e,r,n,o;if("number"==typeof t){for(e=[],r=0;r<4;r++)e.unshift(t%256),t=j(t/256);return e.join(".")}if("object"==typeof t){for(e="",n=function(t){for(var e=null,r=1,n=null,o=0,i=0;i<8;i++)0!==t[i]?(o>r&&(e=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(e=n,r=o),e}(t),r=0;r<8;r++)o&&0===t[r]||(o&&(o=!1),n===r?(e+=r?":":"::",o=!0):(e+=t[r].toString(16),r<7&&(e+=":")));return"["+e+"]"}return t},z={},H=p({},z,{" ":1,'"':1,"<":1,""+">":1,"`":1}),Y=p({},H,{"#":1,"?":1,"{":1,"}":1}),W=p({},Y,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),$=function(t,e){var r=v(t,0);return r>32&&r<127&&!l(e,t)?t:encodeURIComponent(t)},J={ftp:21,file:null,http:80,https:443,ws:80,wss:443},K=function(t){return l(J,t.scheme)},X=function(t){return""!=t.username||""!=t.password},Z=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},Q=function(t,e){var r;return 2==t.length&&P.test(t.charAt(0))&&(":"==(r=t.charAt(1))||!e&&"|"==r)},tt=function(t){var e;return t.length>1&&Q(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},et=function(t){var e=t.path,r=e.length;!r||"file"==t.scheme&&1==r&&Q(e[0],!0)||e.pop()},rt=function(t){return"."===t||"%2e"===t.toLowerCase()},nt={},ot={},it={},at={},ct={},ut={},st={},ft={},lt={},pt={},ht={},vt={},yt={},dt={},gt={},mt={},wt={},bt={},xt={},St={},Lt={},jt=function(t,e,r,o){var i,a,c,u,s,f=r||nt,p=0,v="",y=!1,d=!1,g=!1;for(r||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(M,"")),e=e.replace(B,""),i=h(e);p<=i.length;){switch(a=i[p],f){case nt:if(!a||!P.test(a)){if(r)return O;f=it;continue}v+=a.toLowerCase(),f=ot;break;case ot:if(a&&(R.test(a)||"+"==a||"-"==a||"."==a))v+=a.toLowerCase();else{if(":"!=a){if(r)return O;v="",f=it,p=0;continue}if(r&&(K(t)!=l(J,v)||"file"==v&&(X(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=v,r)return void(K(t)&&J[t.scheme]==t.port&&(t.port=null));v="","file"==t.scheme?f=dt:K(t)&&o&&o.scheme==t.scheme?f=at:K(t)?f=ft:"/"==i[p+1]?(f=ct,p++):(t.cannotBeABaseURL=!0,t.path.push(""),f=xt)}break;case it:if(!o||o.cannotBeABaseURL&&"#"!=a)return O;if(o.cannotBeABaseURL&&"#"==a){t.scheme=o.scheme,t.path=o.path.slice(),t.query=o.query,t.fragment="",t.cannotBeABaseURL=!0,f=Lt;break}f="file"==o.scheme?dt:ut;continue;case at:if("/"!=a||"/"!=i[p+1]){f=ut;continue}f=lt,p++;break;case ct:if("/"==a){f=pt;break}f=bt;continue;case ut:if(t.scheme=o.scheme,a==n)t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,t.path=o.path.slice(),t.query=o.query;else if("/"==a||"\\"==a&&K(t))f=st;else if("?"==a)t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,t.path=o.path.slice(),t.query="",f=St;else{if("#"!=a){t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,t.path=o.path.slice(),t.path.pop(),f=bt;continue}t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,t.path=o.path.slice(),t.query=o.query,t.fragment="",f=Lt}break;case st:if(!K(t)||"/"!=a&&"\\"!=a){if("/"!=a){t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,f=bt;continue}f=pt}else f=lt;break;case ft:if(f=lt,"/"!=a||"/"!=v.charAt(p+1))continue;p++;break;case lt:if("/"!=a&&"\\"!=a){f=pt;continue}break;case pt:if("@"==a){y&&(v="%40"+v),y=!0,c=h(v);for(var m=0;m65535)return A;t.port=K(t)&&x===J[t.scheme]?null:x,v=""}if(r)return;f=wt;continue}return A}v+=a;break;case dt:if(t.scheme="file","/"==a||"\\"==a)f=gt;else{if(!o||"file"!=o.scheme){f=bt;continue}if(a==n)t.host=o.host,t.path=o.path.slice(),t.query=o.query;else if("?"==a)t.host=o.host,t.path=o.path.slice(),t.query="",f=St;else{if("#"!=a){tt(i.slice(p).join(""))||(t.host=o.host,t.path=o.path.slice(),et(t)),f=bt;continue}t.host=o.host,t.path=o.path.slice(),t.query=o.query,t.fragment="",f=Lt}}break;case gt:if("/"==a||"\\"==a){f=mt;break}o&&"file"==o.scheme&&!tt(i.slice(p).join(""))&&(Q(o.path[0],!0)?t.path.push(o.path[0]):t.host=o.host),f=bt;continue;case mt:if(a==n||"/"==a||"\\"==a||"?"==a||"#"==a){if(!r&&Q(v))f=bt;else if(""==v){if(t.host="",r)return;f=wt}else{if(u=N(t,v))return u;if("localhost"==t.host&&(t.host=""),r)return;v="",f=wt}continue}v+=a;break;case wt:if(K(t)){if(f=bt,"/"!=a&&"\\"!=a)continue}else if(r||"?"!=a)if(r||"#"!=a){if(a!=n&&(f=bt,"/"!=a))continue}else t.fragment="",f=Lt;else t.query="",f=St;break;case bt:if(a==n||"/"==a||"\\"==a&&K(t)||!r&&("?"==a||"#"==a)){if(".."===(s=(s=v).toLowerCase())||"%2e."===s||".%2e"===s||"%2e%2e"===s?(et(t),"/"==a||"\\"==a&&K(t)||t.path.push("")):rt(v)?"/"==a||"\\"==a&&K(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&Q(v)&&(t.host&&(t.host=""),v=v.charAt(0)+":"),t.path.push(v)),v="","file"==t.scheme&&(a==n||"?"==a||"#"==a))for(;t.path.length>1&&""===t.path[0];)t.path.shift();"?"==a?(t.query="",f=St):"#"==a&&(t.fragment="",f=Lt)}else v+=$(a,Y);break;case xt:"?"==a?(t.query="",f=St):"#"==a?(t.fragment="",f=Lt):a!=n&&(t.path[0]+=$(a,z));break;case St:r||"#"!=a?a!=n&&("'"==a&&K(t)?t.query+="%27":t.query+="#"==a?"%23":$(a,z)):(t.fragment="",f=Lt);break;case Lt:a!=n&&(t.fragment+=$(a,H))}p++}},kt=function(t){var e,r,n=f(this,kt,"URL"),o=arguments.length>1?arguments[1]:void 0,a=String(t),c=S(n,{type:"URL"});if(void 0!==o)if(o instanceof kt)e=L(o);else if(r=jt(e={},String(o)))throw TypeError(r);if(r=jt(c,a,null,e))throw TypeError(r);var u=c.searchParams=new b,s=x(u);s.updateSearchParams(c.query),s.updateURL=function(){c.query=String(u)||null},i||(n.href=Et.call(n),n.origin=At.call(n),n.protocol=Pt.call(n),n.username=Rt.call(n),n.password=Tt.call(n),n.host=_t.call(n),n.hostname=Ut.call(n),n.port=It.call(n),n.pathname=qt.call(n),n.search=Ft.call(n),n.searchParams=Ct.call(n),n.hash=Mt.call(n))},Ot=kt.prototype,Et=function(){var t=L(this),e=t.scheme,r=t.username,n=t.password,o=t.host,i=t.port,a=t.path,c=t.query,u=t.fragment,s=e+":";return null!==o?(s+="//",X(t)&&(s+=r+(n?":"+n:"")+"@"),s+=V(o),null!==i&&(s+=":"+i)):"file"==e&&(s+="//"),s+=t.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==c&&(s+="?"+c),null!==u&&(s+="#"+u),s},At=function(){var t=L(this),e=t.scheme,r=t.port;if("blob"==e)try{return new URL(e.path[0]).origin}catch(t){return"null"}return"file"!=e&&K(t)?e+"://"+V(t.host)+(null!==r?":"+r:""):"null"},Pt=function(){return L(this).scheme+":"},Rt=function(){return L(this).username},Tt=function(){return L(this).password},_t=function(){var t=L(this),e=t.host,r=t.port;return null===e?"":null===r?V(e):V(e)+":"+r},Ut=function(){var t=L(this).host;return null===t?"":V(t)},It=function(){var t=L(this).port;return null===t?"":String(t)},qt=function(){var t=L(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},Ft=function(){var t=L(this).query;return t?"?"+t:""},Ct=function(){return L(this).searchParams},Mt=function(){var t=L(this).fragment;return t?"#"+t:""},Bt=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(i&&u(Ot,{href:Bt(Et,(function(t){var e=L(this),r=String(t),n=jt(e,r);if(n)throw TypeError(n);x(e.searchParams).updateSearchParams(e.query)})),origin:Bt(At),protocol:Bt(Pt,(function(t){var e=L(this);jt(e,String(t)+":",nt)})),username:Bt(Rt,(function(t){var e=L(this),r=h(String(t));if(!Z(e)){e.username="";for(var n=0;n=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime=r")(e)}}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},function(){"use strict";function t(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function e(t,e,r){t.preventDefault();var n=t.currentTarget;o(e,r),n.onclick=function(){return!0},n.click()}r(5666),r(8674),r(1539),r(4747),r(9600),r(285),r(8783),r(6992),r(3948),window.addEventListener("load",(function(){void 0!==window.pchppProVars&&(window.pchppProVars.isLoggedIn||function(){if(window.IntersectionObserver&&"isIntersecting"in IntersectionObserverEntry.prototype&&window.fetch){var t=document.querySelectorAll(".pochipp-box[data-cvkey]");if(0!==t.length){var r=new IntersectionObserver((function(t){t.forEach((function(t){if(t.isIntersecting){var e=t.target,n=e.getAttribute("data-cvkey");setTimeout((function(){o(n,"imp")}),10),r.unobserve(e)}}))}));t.forEach((function(t){var o=t.getAttribute("data-cvkey");n.push(o),r.observe(t);var i=t.querySelector(".pochipp-box__image a"),a=t.querySelector(".pochipp-box__title a"),c=t.querySelector(".pochipp-box__btnwrap.-amazon a"),u=t.querySelector(".pochipp-box__btnwrap.-rakuten a"),s=t.querySelector(".pochipp-box__btnwrap.-yahoo a"),f=t.querySelector(".pochipp-box__btnwrap.-custom a"),l=t.querySelector(".pochipp-box__btnwrap.-custom_2 a");i&&(i.onclick=function(t){e(t,o,"clickedOther")}),a&&(a.onclick=function(t){e(t,o,"clickedOther")}),c&&(c.onclick=function(t){e(t,o,"clickedAmazon")}),u&&(u.onclick=function(t){e(t,o,"clickedRakuten")}),s&&(s.onclick=function(t){e(t,o,"clickedYahoo")}),f&&(f.onclick=function(t){e(t,o,"clickedCustom")}),l&&(l.onclick=function(t){e(t,o,"clickedCustom2")})})),n.length>0&&o(n.join(","),"pv")}}}())}));var n=[],o=function(t,e){var r=window.pchppProVars.postID;if(r){var n=new URLSearchParams;n.append("action","pochipp_pro_ct_cv"),n.append("postid",r),n.append("cvkey",t),n.append("target",e),i(n)}},i=function(){var e,r=(e=regeneratorRuntime.mark((function t(e){var r,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0!==(r=window.pchppProVars.ajaxUrl)){t.next=3;break}return t.abrupt("return");case 3:if(void 0!==(n=window.pchppProVars.ajaxNonce)){t.next=6;break}return t.abrupt("return");case 6:return e.append("nonce",n),t.next=9,fetch(r,{method:"POST",cache:"no-cache",body:e}).then((function(t){if(t.ok)return t.json();throw new TypeError("Failed ajax!")}));case 9:t.sent;case 10:case"end":return t.stop()}}),t)})),function(){var r=this,n=arguments;return new Promise((function(o,i){var a=e.apply(r,n);function c(e){t(a,o,i,c,u,"next",e)}function u(e){t(a,o,i,c,u,"throw",e)}c(void 0)}))});return function(t){return r.apply(this,arguments)}}()}()}();タイトルとURLをコピーしました
コメント